1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 02:07:12 +00:00

Pre decode address headers

This commit is contained in:
M66B 2023-03-13 17:57:04 +01:00
parent 4136a5b3e6
commit 8d168dc967

View file

@ -2260,6 +2260,8 @@ public class MessageHelper {
header = fixEncoding(name, header);
header = header.replaceAll("\\?=[\\r\\n\\t ]+=\\?", "\\?==\\?");
header = MimeUtility.unfold(header);
header = decodeMime(header);
Address[] addresses = InternetAddress.parseHeader(header, false);
List<Address> result = new ArrayList<>();