Added no/multi from header condition

This commit is contained in:
M66B
2021-12-17 17:35:13 +01:00
parent 29afe62fca
commit f714cdc218
2 changed files with 9 additions and 1 deletions

View File

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