We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 759f6d1 commit fab70c2Copy full SHA for fab70c2
1 file changed
imports/messages.go
@@ -82,7 +82,9 @@ func ImportMessage(c *protonmail.Client, r io.Reader) error {
82
}
83
84
var ihdr mail.InlineHeader
85
- ihdr.Set("Content-Type", hdr.Get("Content-Type"))
+ if hdr.Has("Content-Type") {
86
+ ihdr.Set("Content-Type", hdr.Get("Content-Type"))
87
+ }
88
ihdr.Set("Content-Transfer-Encoding", "8bit")
89
90
hdr.Del("Content-Type")
0 commit comments