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.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/worker/imap/fetch.go b/worker/imap/fetch.go
index a8245784..f209d7f0 100644
--- a/worker/imap/fetch.go
+++ b/worker/imap/fetch.go
@@ -42,6 +42,7 @@ func (imapw *IMAPWorker) handleFetchMessageHeaders(
imap.FetchInternalDate,
imap.FetchFlags,
imap.FetchUid,
+ imap.FetchRFC822Size,
section.FetchItem(),
}
imapw.handleFetchMessages(msg, toFetch, items,
@@ -66,6 +67,7 @@ func (imapw *IMAPWorker) handleFetchMessageHeaders(
InternalDate: _msg.InternalDate,
RFC822Headers: header,
Refs: parse.MsgIDList(header, "references"),
+ Size: _msg.Size,
Uid: _msg.Uid,
}
imapw.worker.PostMessage(&types.MessageInfo{