Workaround incorrect References headers

This commit is contained in:
M66B
2023-11-27 14:49:29 +01:00
parent a9844191f8
commit cd6f7f2624

View File

@@ -1591,6 +1591,9 @@ public class MessageHelper {
header = MimeUtility.unfold(header);
if (TextUtils.isEmpty(header))
return result;
header = header
.replaceAll("<\\s*<", "<")
.replaceAll(">\\s*>", ">");
for (String ref : header.split("[,\\s]+"))
if (!result.contains(ref))
result.add(ref);