commit | c661cc0d6848bf794a08693ff51c479f90330908 | [log] [tgz] |
---|---|---|
author | Dusan Kasan <me@dusankasan.com> | Tue Apr 18 10:51:51 2017 +0200 |
committer | Dusan Kasan <me@dusankasan.com> | Tue Apr 18 10:51:51 2017 +0200 |
tree | c0e6419e456afac33daaea34eb2e5e29adfc9864 | |
parent | 1a966487dda67a7bbacebca0512933ae632abaec [diff] |
Formatting fixed
diff --git a/parsemail.go b/parsemail.go index 9b40f1c..0580481 100644 --- a/parsemail.go +++ b/parsemail.go
@@ -201,6 +201,9 @@ } contentType, params, err := mime.ParseMediaType(part.Header.Get("Content-Type")) + if err != nil { + return textBody, htmlBody, embeddedFiles, err + } switch contentType { case contentTypeTextPlain: