1
0
Fork 0
mirror of https://git.sr.ht/~rjarry/aerc synced 2025-07-30 19:36:46 +02:00
aerc/lib/rfc822
Robin Jarry f5b8c32f5e rfc822: try harder to decode invalid address headers
Some address names may be quoted AND partially encoded. That is only
a word in the middle of the name could be encoded (and be surrounded by
=? and ?= delimiters).

Just check if the address name contains these two delimiters (regardless
of their position) to determine if we should re-decode the name.

Fixes: 44b14ebdff ("rfc822: be liberal with invalid address headers")
Signed-off-by: Robin Jarry <robin@jarry.cc>
2025-05-07 17:13:23 +02:00
..
testdata/message rfc822: parse multipart messages on a best efforts basis 2024-11-21 22:27:19 +01:00
message.go rfc822: try harder to decode invalid address headers 2025-05-07 17:13:23 +02:00
message_test.go rfc822: parse multipart messages on a best efforts basis 2024-11-21 22:27:19 +01:00