summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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 != "" {