mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 14:17:03 +02:00
Added no/multi from header condition
This commit is contained in:
@@ -283,6 +283,12 @@ public class EntityRule {
|
||||
} else if ("$replydomain".equals(keyword)) {
|
||||
if (!Boolean.TRUE.equals(message.reply_domain))
|
||||
return false;
|
||||
} else if ("$nofrom".equals(keyword)) {
|
||||
if (message.from != null && message.from.length > 0)
|
||||
return false;
|
||||
} else if ("$multifrom".equals(keyword)) {
|
||||
if (message.from == null || message.from.length < 2)
|
||||
return false;
|
||||
} else {
|
||||
List<String> keywords = new ArrayList<>();
|
||||
keywords.addAll(Arrays.asList(message.keywords));
|
||||
|
||||
Reference in New Issue
Block a user