aboutsummaryrefslogtreecommitdiffstats
path: root/worker/imap/fetch.go
diff options
context:
space:
mode:
Diffstat (limited to 'worker/imap/fetch.go')
-rw-r--r--worker/imap/fetch.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/worker/imap/fetch.go b/worker/imap/fetch.go
index f21c6e91..d675ed17 100644
--- a/worker/imap/fetch.go
+++ b/worker/imap/fetch.go
@@ -123,7 +123,10 @@ func (imapw *IMAPWorker) handleFetchMessageBodyPart(
part, err := message.New(message.Header{Header: h},
_msg.GetBody(&partBodySection))
- if err != nil {
+ if message.IsUnknownCharset(err) {
+ logging.Warnf("unknown charset encountered "+
+ "for uid %d", _msg.Uid)
+ } else if err != nil {
return fmt.Errorf("failed to create message reader: %w", err)
}