some tweaks

This commit is contained in:
Niklas 2019-11-05 00:57:54 +01:00
parent 5e08622a67
commit e151e6b3fd
1 changed files with 4 additions and 2 deletions

View File

@ -26,6 +26,7 @@ func (ew *encryptWriter) open() error {
// Create control information
h := make(textproto.MIMEHeader)
h.Add("Content-Type", "application/pgp-encrypted")
h.Add("Content-Description", "PGP/MIME version identification")
w, err := ew.multipart.CreatePart(h)
if err != nil {
return err
@ -36,8 +37,9 @@ func (ew *encryptWriter) open() error {
// Create body part
h = make(textproto.MIMEHeader)
h.Add("Content-Type", "application/octet-stream")
h.Add("Content-Disposition", "inline")
h.Add("Content-Type", "application/octet-stream; name=\"encrypted.asc\"")
h.Add("Content-Description", "OpenPGP encrypted message")
h.Add("Content-Disposition", "inline; filename=\"encrypted.asc\"")
w, err = ew.multipart.CreatePart(h)
if err != nil {
return err