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
1 changed files with 1 additions and 1 deletions
|
@ -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 != "" {
|
||||||
|
|
Loading…
Reference in a new issue