Fix spaces in list unsubscribe

This commit is contained in:
M66B
2025-08-15 21:56:22 +02:00
parent b164c38f44
commit 0b42bc22ad
2 changed files with 7 additions and 2 deletions

View File

@@ -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());
}