You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aerc/worker/imap
Julian Swagemakers 4f866e6894 imap: strip whitespace from Message-Id and In-Reply-To
Outlook.com is generating fairly long Message-IDs and using folding[0]
to put the ID on a new line. This is resulting in the Message-ID to
contain a leading white space, which is preventing `TrimPrefix` from
removing the less than symbol. When replying the In-Reply-To header will
then contain "< <message-id>" which is not desired and prevents email
clients or lists form correctly associating the email replied to. For
example lore.kernel.org[1]. Trimming tabs, newlines, and spaces from
Message-ID resolves the issue.

[0]: https://datatracker.ietf.org/doc/html/rfc822#section-3.1.1
[1]: https://lore.kernel.org/git/D4U1RWVWEW5D.2T853XSBO1FPA@swagemakers.org/#t

Changelog-fixed: Remove unwanted less than symbol from In-Reply-To
 header when Message-ID uses folding.
Signed-off-by: Julian Swagemakers <julian@swagemakers.org>
Acked-by: Robin Jarry <robin@jarry.cc>
2 weeks ago
..
extensions treewide: replace uint32 uids with opaque strings 2 months ago
cache.go treewide: replace uint32 uids with opaque strings 2 months ago
checkmail.go worker: add WorkerInteractor interface 1 year ago
configure.go idler: improve the imap idler 10 months ago
connect.go imap: fix panic in connect 6 months ago
create.go go vet: composite literal uses unkeyed fields 3 years ago
fetch.go treewide: replace uint32 uids with opaque strings 2 months ago
flags.go treewide: replace uint32 uids with opaque strings 2 months ago
idler.go log: move package to lib 9 months ago
imap.go imap: strip whitespace from Message-Id and In-Reply-To 2 weeks ago
imap_test.go imap: strip whitespace from Message-Id and In-Reply-To 2 weeks ago
list.go treewide: replace uint32 uids with opaque strings 2 months ago
movecopy.go imap: drain updates channel when moving messages 8 months ago
observer.go lint: update golangci-lint to 1.61.0 2 months ago
open.go treewide: replace uint32 uids with opaque strings 2 months ago
remove.go go vet: composite literal uses unkeyed fields 3 years ago
search.go completion: display descriptions next to choices 2 weeks ago
seqmap.go imap: fix SeqMap.Pop runtime error 2 months ago
seqmap_test.go imap: create copy of uids to retain sort order 2 years ago
worker.go treewide: replace uint32 uids with opaque strings 2 months ago