Ignore missing message part in getDecodedPart

The code that calls this function handles nil without issues.
This commit is contained in:
Amir Yalon 2020-02-29 22:33:31 +02:00 committed by Drew DeVault
parent df20f1cd03
commit ae7595e945
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ func getDecodedPart(task *types.FetchMessageBodyPart, msg *imap.Message,
r = msg.GetBody(section) r = msg.GetBody(section)
if r == nil { if r == nil {
return nil, fmt.Errorf("getDecodedPart: no message body") return nil, nil
} }
r = encodingReader(task.Encoding, r) r = encodingReader(task.Encoding, r)
if task.Charset != "" { if task.Charset != "" {