aboutsummaryrefslogtreecommitdiffstats
path: root/worker/imap
diff options
context:
space:
mode:
Diffstat (limited to 'worker/imap')
-rw-r--r--worker/imap/fetch.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/worker/imap/fetch.go b/worker/imap/fetch.go
index 7d7b72fe..cf27e382 100644
--- a/worker/imap/fetch.go
+++ b/worker/imap/fetch.go
@@ -158,6 +158,10 @@ func (imapw *IMAPWorker) handleFetchFullMessages(
}
imapw.handleFetchMessages(msg, msg.Uids, items,
func(_msg *imap.Message) error {
+ if len(_msg.Body) == 0 {
+ // ignore duplicate messages with only flag updates
+ return nil
+ }
r := _msg.GetBody(section)
if r == nil {
return fmt.Errorf("could not get section %#v", section)