summaryrefslogtreecommitdiffstats
path: root/internal/compose/mime_test.go
diff options
context:
space:
mode:
authorGab Virebent <gabriel1@virebent.art>2026-08-23 00:26:27 +0200
committerGab Virebent <gabriel1@virebent.art>2026-08-23 00:26:27 +0200
commitbdb8a02bbb3dc0d7c39f5b3ec451abb68e9d093d (patch)
tree796d246f9874641717b5e81a72989961e65a9b9f /internal/compose/mime_test.go
parentc1decadb590c4d79d92bcc4df7772119a5c91244 (diff)
downloadaegis-main.tar.gz
aegis-main.tar.xz
aegis-main.zip
Simplify Usenet posting to signing onlyHEADmain
Diffstat (limited to 'internal/compose/mime_test.go')
-rw-r--r--internal/compose/mime_test.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/internal/compose/mime_test.go b/internal/compose/mime_test.go
index 32fb6b2..6e8f0a0 100644
--- a/internal/compose/mime_test.go
+++ b/internal/compose/mime_test.go
@@ -19,13 +19,3 @@ func TestBuildMixed(t *testing.T) {
t.Fatalf("attachment missing: %q", body)
}
}
-
-func TestBuildOpenPGPMIME(t *testing.T) {
- contentType, _, body, err := BuildOpenPGPMIME("-----BEGIN PGP MESSAGE-----\nabc\n-----END PGP MESSAGE-----")
- if err != nil {
- t.Fatal(err)
- }
- if !strings.HasPrefix(contentType, "multipart/encrypted") || !strings.Contains(body, "Version: 1") || !strings.Contains(body, "BEGIN PGP MESSAGE") {
- t.Fatalf("invalid OpenPGP/MIME body: %q", body)
- }
-}