mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-26 02:45:31 +01:00
Added $$tls$ rule condition
This commit is contained in:
7
FAQ.md
7
FAQ.md
@@ -2430,17 +2430,18 @@ $$flagged$
|
||||
$$deleted$
|
||||
```
|
||||
|
||||
To match *passed* message checks via a header condition (since version 1.1787; no/multi-from since version 1.1791):
|
||||
To match *passed* message checks via a header condition (since version 1.1787):
|
||||
|
||||
```
|
||||
$$tls$ (since version 1.1826)
|
||||
$$dkim$
|
||||
$$spf$
|
||||
$$dmarc$
|
||||
$$mx$
|
||||
$$blocklist$
|
||||
$$replydomain$
|
||||
$$nofrom$
|
||||
$$multifrom$
|
||||
$$nofrom$ (since version 1.1791)
|
||||
$$multifrom$ (since version 1.1791)
|
||||
```
|
||||
|
||||
Note that *regex* should be disable and that there should be no white space.
|
||||
|
||||
@@ -271,7 +271,10 @@ public class EntityRule {
|
||||
value.endsWith("$")) {
|
||||
String keyword = value.substring(1, value.length() - 1);
|
||||
|
||||
if ("$dkim".equals(keyword)) {
|
||||
if ("$tls".equals(keyword)) {
|
||||
if (!Boolean.TRUE.equals(message.tls))
|
||||
return false;
|
||||
} else if ("$dkim".equals(keyword)) {
|
||||
if (!Boolean.TRUE.equals(message.dkim))
|
||||
return false;
|
||||
} else if ("$spf".equals(keyword)) {
|
||||
|
||||
Reference in New Issue
Block a user