added plain message like thunderbird

This commit is contained in:
Niklas 2019-11-05 01:19:30 +01:00
parent a469c25d24
commit 49f8f88008
1 changed files with 2 additions and 0 deletions

View File

@ -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 != "" {