Skip reply check for messages from self

pull/190/head
M66B 5 years ago
parent 68c55c4300
commit 0259da1136

@ -2872,8 +2872,18 @@ class Core {
boolean check_reply = prefs.getBoolean("check_reply", false); boolean check_reply = prefs.getBoolean("check_reply", false);
if (check_reply) { if (check_reply) {
String warning = message.checkReplyDomain(context); // For contact forms
message.reply_domain = (warning == null); boolean self = false;
if (identity != null && message.from != null)
for (Address from : message.from)
if (identity.sameAddress(from) || identity.similarAddress(from)) {
self = true;
break;
}
if (!self) {
String warning = message.checkReplyDomain(context);
message.reply_domain = (warning == null);
}
} }
boolean check_spam = prefs.getBoolean("check_spam", false); boolean check_spam = prefs.getBoolean("check_spam", false);

Loading…
Cancel
Save