mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 17:13:23 +02:00
Fix spaces in list unsubscribe
This commit is contained in:
@@ -2975,6 +2975,7 @@ public class MessageHelper {
|
||||
|
||||
list = MimeUtility.unfold(list);
|
||||
list = decodeMime(list);
|
||||
list = list.replaceAll("\\s+", "");
|
||||
|
||||
if (list == null || list.startsWith("NO"))
|
||||
return null;
|
||||
@@ -2985,6 +2986,7 @@ public class MessageHelper {
|
||||
if (post != null) {
|
||||
post = MimeUtility.unfold(post);
|
||||
post = decodeMime(post);
|
||||
post = post.replaceAll("\\s+", "");
|
||||
oneclick = "List-Unsubscribe=One-Click".equalsIgnoreCase(post.trim());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user