Do not fail if ContentTransferEncoding = ''
j3s j3s@c3f.net
Mon, 23 Dec 2019 14:11:43 -0600
1 files changed,
1 insertions(+),
4 deletions(-)
jump to
M
mail/main.go
→
mail/main.go
@@ -173,10 +173,7 @@ if err != nil {
return textBody, htmlBody, embeddedFiles, err } - ContentTransferEncoding, params, err := mime.ParseMediaType(part.Header.Get("Content-Transfer-Encoding")) - if err != nil { - return textBody, htmlBody, embeddedFiles, err - } + ContentTransferEncoding, _, _ := mime.ParseMediaType(part.Header.Get("Content-Transfer-Encoding")) switch contentType { case contentTypeTextPlain: