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
1 changed files with 1 additions and 1 deletions

View File

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