diff options
author | Koni Marti <koni.marti@gmail.com> | 2023-04-24 23:18:49 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-04-26 00:07:43 +0200 |
commit | f04d83e80af70f9d29a1c515e93238eeb356ad2d (patch) | |
tree | c77c65957f000601894cbc717bbcaa56cf411f7f /worker/imap | |
parent | 8e39fbd80869d5c80ff339498e6b06341f9f00af (diff) | |
download | aerc-f04d83e80af70f9d29a1c515e93238eeb356ad2d.tar.gz |
messageinfo: report message sizes
Report sizes of the message across all backends.
Signed-off-by: Koni Marti <koni.marti@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'worker/imap')
-rw-r--r-- | worker/imap/fetch.go | 2 |
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{ |