diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2022-11-07 10:15:49 -0600 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-11-09 21:26:45 +0100 |
commit | 31d2f5be3cec88d82924816c3482253557999e63 (patch) | |
tree | 404de40599ad4ad8914a89f06b6e09edca9c5869 /worker/imap/fetch.go | |
parent | ca903d4228265272a0f6a780f5ed2280772eceec (diff) | |
download | aerc-31d2f5be3cec88d82924816c3482253557999e63.tar.gz |
message-info: add explicit References field
Add an explicit References field to message info. This is useful for
storing information needed for threading without storing all of the
header values, keeping system RAM usage lower.
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Tested-by: Inwit <inwit@sindominio.net>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'worker/imap/fetch.go')
-rw-r--r-- | worker/imap/fetch.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/worker/imap/fetch.go b/worker/imap/fetch.go index 3b9c7862..f3aad36e 100644 --- a/worker/imap/fetch.go +++ b/worker/imap/fetch.go @@ -62,6 +62,10 @@ func (imapw *IMAPWorker) handleFetchMessageHeaders( RFC822Headers: header, Uid: _msg.Uid, } + refs, err := header.MsgIDList("references") + if err != nil { + info.Refs = refs + } imapw.worker.PostMessage(&types.MessageInfo{ Message: types.RespondTo(msg), Info: info, |