Updated FAQ

pull/215/head
M66B 7 months ago
parent c0e2a360ee
commit be4802bccc

@ -2755,20 +2755,21 @@ Please [see here](https://ezylang.github.io/EvalEx/references/references.html) a
The following extra variables are available: The following extra variables are available:
* from (array) * *from* (array)
* to (array) * *to* (array)
* subject * *subject* (string)
* text * *text* (string)
* hasAttachments * *hasAttachments* (boolean)
The following extra operators are available: The following extra operators are available:
* contains * *contains* (contains substring)
* matches (=regex) * *matches* (matches regex)
The following extra functions are available: The following extra functions are available:
* header(name) * *header(name)* (returns an array of header values for the named header)
* *blocklist()* (returns a boolean indicating if the sender/server is on a DNS blocklist; since version 1.2176)
Example condition: Example condition:

@ -1499,20 +1499,21 @@ X-Google-Original-From: Somebody &lt;somebody+extra@example.org&gt;</code></pre>
<p>Please <a href="https://ezylang.github.io/EvalEx/references/references.html">see here</a> about which constants, operators and functions are available.</p> <p>Please <a href="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" &amp;&amp; from matches ".*service@.*" &amp;&amp; !hasAttachments</code></p> <p><code>header("X-Mailer") contains "Open-Xchange" &amp;&amp; from matches ".*service@.*" &amp;&amp; !hasAttachments</code></p>

Loading…
Cancel
Save