diff options
author | Amir Yalon <mufHEsY6Za-20181118@yxejamir.net> | 2020-02-29 22:33:31 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-03-09 09:12:33 -0400 |
commit | ae7595e945e3fd3abd46aceba1e09c0a1f6249e4 (patch) | |
tree | 696d791d17db32779bcc31e3991a68374d9d7329 /worker | |
parent | df20f1cd03fcc369d3927b0936d0d126974f3b9a (diff) | |
download | aerc-ae7595e945e3fd3abd46aceba1e09c0a1f6249e4.tar.gz |
Ignore missing message part in getDecodedPart
The code that calls this function handles nil without issues.
Diffstat (limited to 'worker')
-rw-r--r-- | worker/imap/fetch.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/worker/imap/fetch.go b/worker/imap/fetch.go index f1311179..bc7144cf 100644 --- a/worker/imap/fetch.go +++ b/worker/imap/fetch.go @@ -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 != "" { |