commit | 9b9506a6eb4cb445e3b7844b899c7046de9a8fd7 | [log] [tgz] |
---|---|---|
author | Kevin Chen <kevinmichaelchen@gmail.com> | Thu May 03 22:17:38 2018 -0400 |
committer | Kevin Chen <kevinmichaelchen@gmail.com> | Thu May 03 22:17:38 2018 -0400 |
tree | 0baaf0e96778f66b952b972e79ebdc591829fc41 | |
parent | 5dc5bc87d210a9dac70ae97c00146e4e66229ea4 [diff] |
check if alternative part contains related part
diff --git a/parsemail.go b/parsemail.go index e0ab7a6..996e357 100644 --- a/parsemail.go +++ b/parsemail.go
@@ -189,7 +189,7 @@ htmlBody += strings.TrimSuffix(string(ppContent[:]), "\n") case contentTypeMultipartRelated: - tb, hb, ef, err := parseMultipartAlternative(part, params["boundary"]) + tb, hb, ef, err := parseMultipartRelated(part, params["boundary"]) if err != nil { return textBody, htmlBody, embeddedFiles, err }