Skip reply check for messages from self

This commit is contained in:
M66B 2020-12-23 10:14:10 +01:00
parent 68c55c4300
commit 0259da1136
1 changed files with 12 additions and 2 deletions

View File

@ -2872,8 +2872,18 @@ class Core {
boolean check_reply = prefs.getBoolean("check_reply", false);
if (check_reply) {
String warning = message.checkReplyDomain(context);
message.reply_domain = (warning == null);
// For contact forms
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);