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

Unfold BIMI selector

This commit is contained in:
M66B 2022-03-22 20:25:54 +01:00
parent a73f060a43
commit 1d002c4250

View file

@ -1756,6 +1756,7 @@ public class MessageHelper {
if (header == null) if (header == null)
return null; return null;
header = MimeUtility.unfold(header);
header = header.toLowerCase(Locale.ROOT); header = header.toLowerCase(Locale.ROOT);
int s = header.indexOf("s="); int s = header.indexOf("s=");
@ -1766,7 +1767,7 @@ public class MessageHelper {
if (e < 0) if (e < 0)
e = header.length(); e = header.length();
String selector = header.substring(s + 2, e); String selector = header.substring(s + 2, e).trim();
if (TextUtils.isEmpty(selector)) if (TextUtils.isEmpty(selector))
return null; return null;