mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 02:07:12 +00:00
Unfold BIMI selector
This commit is contained in:
parent
a73f060a43
commit
1d002c4250
1 changed files with 2 additions and 1 deletions
|
@ -1756,6 +1756,7 @@ public class MessageHelper {
|
|||
if (header == null)
|
||||
return null;
|
||||
|
||||
header = MimeUtility.unfold(header);
|
||||
header = header.toLowerCase(Locale.ROOT);
|
||||
|
||||
int s = header.indexOf("s=");
|
||||
|
@ -1766,7 +1767,7 @@ public class MessageHelper {
|
|||
if (e < 0)
|
||||
e = header.length();
|
||||
|
||||
String selector = header.substring(s + 2, e);
|
||||
String selector = header.substring(s + 2, e).trim();
|
||||
if (TextUtils.isEmpty(selector))
|
||||
return null;
|
||||
|
||||
|
|
Loading…
Reference in a new issue