small pixel drawing of a pufferfish clist

Do not fail if ContentTransferEncoding = ''
j3s j3s@c3f.net
Mon, 23 Dec 2019 14:11:43 -0600
commit

73dca3f3ce3e1cd8493cc691f98fdff780c69a09

parent

985c6a7f0fe262a9fd15fee6f06e58f144d1bb98

1 files changed, 1 insertions(+), 4 deletions(-)

jump to
M mail/main.gomail/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: