Ignore missing message part in getDecodedPart
The code that calls this function handles nil without issues.
This commit is contained in:
parent
df20f1cd03
commit
ae7595e945
|
@ -173,7 +173,7 @@ func getDecodedPart(task *types.FetchMessageBodyPart, msg *imap.Message,
|
|||
r = msg.GetBody(section)
|
||||
|
||||
if r == nil {
|
||||
return nil, fmt.Errorf("getDecodedPart: no message body")
|
||||
return nil, nil
|
||||
}
|
||||
r = encodingReader(task.Encoding, r)
|
||||
if task.Charset != "" {
|
||||
|
|
Loading…
Reference in New Issue