about summary refs log tree commit diff stats
path: root/worker/imap
diff options
context:
space:
mode:
authorAmir Yalon <mufHEsY6Za-20181118@yxejamir.net>2020-02-29 22:33:31 +0200
committerDrew DeVault <sir@cmpwn.com>2020-03-09 09:12:33 -0400
commitae7595e945e3fd3abd46aceba1e09c0a1f6249e4 (patch)
tree696d791d17db32779bcc31e3991a68374d9d7329 /worker/imap
parentdf20f1cd03fcc369d3927b0936d0d126974f3b9a (diff)
downloadaerc-ae7595e945e3fd3abd46aceba1e09c0a1f6249e4.tar.gz
Ignore missing message part in getDecodedPart
The code that calls this function handles nil without issues.
Diffstat (limited to 'worker/imap')
-rw-r--r--worker/imap/fetch.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/worker/imap/fetch.go b/worker/imap/fetch.go
index f131117..bc7144c 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 != "" {