From 49f8f88008c25d90ee29d488473f40ba75bc5d3e Mon Sep 17 00:00:00 2001 From: Gurkengewuerz Date: Tue, 5 Nov 2019 01:19:30 +0100 Subject: [PATCH] added plain message like thunderbird --- gpgit.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gpgit.go b/gpgit.go index 32fbda6..3e449d3 100644 --- a/gpgit.go +++ b/gpgit.go @@ -123,6 +123,8 @@ func encryptEML(eml string, armoredKeyRing *string) { // Set the PGP/MIME writer output to the mail body ciphertext.Writer = mw + _, _ = io.WriteString(ciphertext.Writer, "This is an OpenPGP/MIME encrypted message (RFC 4880 and 3156)\n") + // Write the cleartext body if b, err := ioutil.ReadAll(m.Body); err == nil { if origMimeVersion != "" {