From f04d83e80af70f9d29a1c515e93238eeb356ad2d Mon Sep 17 00:00:00 2001 From: Koni Marti Date: Mon, 24 Apr 2023 23:18:49 +0200 Subject: messageinfo: report message sizes Report sizes of the message across all backends. Signed-off-by: Koni Marti Acked-by: Robin Jarry --- worker/imap/fetch.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'worker/imap') 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{ -- cgit