Refactoring

This commit is contained in:
M66B
2021-07-29 08:55:34 +02:00
parent e477763268
commit 2e338e381d
2 changed files with 5 additions and 4 deletions

View File

@@ -137,12 +137,14 @@ public class MessageHelper {
static final String FLAG_FORWARDED = "$Forwarded";
static final String FLAG_NOT_JUNK = "$NotJunk";
static final String FLAG_CLASSIFIED = "$Classified";
// https://www.iana.org/assignments/imap-jmap-keywords/imap-jmap-keywords.xhtml
// Not black listed: Gmail $Phishing
private static final List<String> FLAG_BLACKLIST = Collections.unmodifiableList(Arrays.asList(
MessageHelper.FLAG_FORWARDED,
MessageHelper.FLAG_NOT_JUNK,
MessageHelper.FLAG_CLASSIFIED, // FairEmail
"$MDNSent", // https://tools.ietf.org/html/rfc3503
"$SubmitPending",
"$Submitted",
@@ -160,8 +162,7 @@ public class MessageHelper {
"$signed", // Kmail
"$encrypted", // Kmail
"$HasAttachment", // Dovecot
"$HasNoAttachment", // Dovecot
"$Classified" // FairEmail
"$HasNoAttachment" // Dovecot
));
// https://tools.ietf.org/html/rfc4021