aboutsummaryrefslogtreecommitdiffstats
path: root/worker/imap
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2023-04-24 23:18:49 +0200
committerRobin Jarry <robin@jarry.cc>2023-04-26 00:07:43 +0200
commitf04d83e80af70f9d29a1c515e93238eeb356ad2d (patch)
treec77c65957f000601894cbc717bbcaa56cf411f7f /worker/imap
parent8e39fbd80869d5c80ff339498e6b06341f9f00af (diff)
downloadaerc-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.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{