diff options
-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 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 != "" { |