<p>You can disable a rule and you can stop processing other rules after a rule has been executed, which can be used to create a <em>not</em> condition.</p>
<p>Since version 1.2061 rules can be part of a named group. Group names will be displayed in the list of rules. If a rule is part of a group, stop processing means stop processing the group.</p>
<p>Since version 1.2018 there is a rule option to run rules daily on messages (around 1:00am) older than xxx.</p>
<p><br></p>
<p><strong>Conditions</strong></p>
<p>The following rule conditions are available:</p>
<ul>
<li>Sender (from, reply-to) contains or sender is contact</li>
<li>Absolute time (received) between (since version 1.1540)</li>
<li>Relative time (received) between</li>
<li>Expression (since version 1.2174)</li>
</ul>
<p>All the conditions of a rule need to be true for the rule action to be executed. All conditions are optional, but there needs to be at least one condition, to prevent matching all messages.</p>
<p>If you want to match all senders or all recipients, you can just use the @ character as condition because all email addresses will contain this character. If you want to match a domain name, you can use as a condition something like <em><spanclass="citation"data-cites="example.org">@example.org</span></em></p>
<p>Note that <ahref="https://developer.android.com/reference/java/util/regex/Pattern#DOTALL">dot all mode</a> is enabled to be able to match <ahref="https://tools.ietf.org/html/rfc2822#section-3.2.3">unfolded headers</a>.</p>
<p>Since version 1.2174 it is possible to use expression conditions, which is <ahref="#faq125">experimental</a> for now.</p>
<p>Please <ahref="https://ezylang.github.io/EvalEx/references/references.html">see here</a> about which constants, operators and functions are available.</p>
<p>The following extra variables are available:</p>
<ul>
<li>from (array)</li>
<li>to (array)</li>
<li>subject (array)</li>
<li>text (array)</li>
<li>hasAttachments (boolean)</li>
</ul>
<p>The following extra operators are available:</p>
<ul>
<li>(array) contains</li>
<li>(array) matches (=regex)</li>
</ul>
<p>The following extra functions are available:</p>
<ul>
<li>header(name)</li>
</ul>
<p><br></p>
<p><strong>Actions</strong></p>
<p>You can select one of these actions to apply to matching messages:</p>
<ul>
<li>No action (useful for <em>not</em>)</li>
@ -2088,6 +2112,9 @@ $NotDisplayed</code></pre>
<p><em>Markdown (1.2061+)</em></p>
<p>Composing messages using <ahref="https://en.wikipedia.org/wiki/Markdown">Markdown</a> can be enabled via the three-dots overflow menu of the message editor.</p>