mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-12 23:28:37 +00:00
Added priority condition
This commit is contained in:
parent
b9347265a1
commit
d49f1ac728
2 changed files with 8 additions and 0 deletions
2
FAQ.md
2
FAQ.md
|
@ -2624,6 +2624,8 @@ $$replydomain$
|
|||
$$nofrom$ (since version 1.1791)
|
||||
$$multifrom$ (since version 1.1791)
|
||||
$$automatic$ (since version 1.1862)
|
||||
$$lowpriority (since version 1.1958)
|
||||
$$highpriority (since version 1.1958)
|
||||
```
|
||||
|
||||
Note that *regex* should be disable and that there should be no white space.
|
||||
|
|
|
@ -306,6 +306,12 @@ public class EntityRule {
|
|||
} else if ("$automatic".equals(keyword)) {
|
||||
if (!Boolean.TRUE.equals(message.auto_submitted))
|
||||
return false;
|
||||
} else if ("$lowpriority".equals(keyword)) {
|
||||
if (!EntityMessage.PRIORITIY_LOW.equals(message.priority))
|
||||
return false;
|
||||
} else if ("$highpriority".equals(keyword)) {
|
||||
if (!EntityMessage.PRIORITIY_HIGH.equals(message.priority))
|
||||
return false;
|
||||
} else {
|
||||
List<String> keywords = new ArrayList<>();
|
||||
keywords.addAll(Arrays.asList(message.keywords));
|
||||
|
|
Loading…
Add table
Reference in a new issue