<p>Please <ahref="https://ezylang.github.io/EvalEx/references/references.html">see here</a> about which constants, operators and functions are available.</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>
<p>The following extra variables are available:</p>
<ul>
<ul>
<li>from (array)</li>
<li><em>from</em> (array)</li>
<li>to (array)</li>
<li><em>to</em> (array)</li>
<li>subject</li>
<li><em>subject</em> (string)</li>
<li>text</li>
<li><em>text</em> (string)</li>
<li>hasAttachments</li>
<li><em>hasAttachments</em> (boolean)</li>
</ul>
</ul>
<p>The following extra operators are available:</p>
<p>The following extra operators are available:</p>
<ul>
<ul>
<li>contains</li>
<li><em>contains</em> (contains substring)</li>
<li>matches (=regex)</li>
<li><em>matches</em> (matches regex)</li>
</ul>
</ul>
<p>The following extra functions are available:</p>
<p>The following extra functions are available:</p>
<ul>
<ul>
<li>header(name)</li>
<li><em>header(name)</em> (returns an array of header values for the named header)</li>
<li><em>blocklist()</em> (returns a boolean indicating if the sender/server is on a DNS blocklist; since version 1.2176)</li>
</ul>
</ul>
<p>Example condition:</p>
<p>Example condition:</p>
<p><code>header("X-Mailer") contains "Open-Xchange" && from matches ".*service@.*" && !hasAttachments</code></p>
<p><code>header("X-Mailer") contains "Open-Xchange" && from matches ".*service@.*" && !hasAttachments</code></p>