Fix infinite recursion in reply.go:findPlaintext

This commit is contained in:
Drew DeVault 2019-06-02 09:36:21 -04:00
parent 7f434850b5
commit 1894a7e91b

View file

@ -243,7 +243,7 @@ func findPlaintext(bs *imap.BodyStructure,
return part, cur return part, cur
} }
if part.MIMEType == "multipart" { if part.MIMEType == "multipart" {
if part, path := findPlaintext(bs, cur); path != nil { if part, path := findPlaintext(part, cur); path != nil {
return part, path return part, path
} }
} }