|
|
@ -1506,7 +1506,7 @@ X-Google-Original-From: Somebody <somebody+extra@example.org></code></pre>
|
|
|
|
<li><em>to</em> (array)</li>
|
|
|
|
<li><em>to</em> (array)</li>
|
|
|
|
<li><em>subject</em> (string)</li>
|
|
|
|
<li><em>subject</em> (string)</li>
|
|
|
|
<li><em>text</em> (string)</li>
|
|
|
|
<li><em>text</em> (string)</li>
|
|
|
|
<li><em>hasAttachments</em> (boolean; deprecated, use function <em>attachments()</em>)</li>
|
|
|
|
<li><em>hasAttachments</em> (boolean; deprecated, use function <em>attachments()</em> instead)</li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
<p>The following extra operators are available:</p>
|
|
|
|
<p>The following extra operators are available:</p>
|
|
|
|
<ul>
|
|
|
|
<ul>
|
|
|
@ -1516,13 +1516,14 @@ X-Google-Original-From: Somebody <somebody+extra@example.org></code></pre>
|
|
|
|
<p>The following extra functions are available:</p>
|
|
|
|
<p>The following extra functions are available:</p>
|
|
|
|
<ul>
|
|
|
|
<ul>
|
|
|
|
<li><em>header(name)</em> (returns an array of header values for the named header)</li>
|
|
|
|
<li><em>header(name)</em> (returns an array of header values for the named header)</li>
|
|
|
|
<li><em>blocklist()</em> (version 1.2176-1.2178; deprecated)</li>
|
|
|
|
<li><em>blocklist()</em> (version 1.2176-1.2178; deprecated, use <em>onBlocklist()</em> instead)</li>
|
|
|
|
<li><em>onBlocklist()</em> (returns a boolean indicating if the sender/server is on a DNS blocklist; since version 1.2179)</li>
|
|
|
|
<li><em>onBlocklist()</em> (returns a boolean indicating if the sender/server is on a DNS blocklist; since version 1.2179)</li>
|
|
|
|
<li><em>hasMx()</em> (returns boolean indicating if the from/reply-to address has an associated MX record; since version 1.2179)</li>
|
|
|
|
<li><em>hasMx()</em> (returns a boolean indicating if the from/reply-to address has an associated MX record; since version 1.2179)</li>
|
|
|
|
<li><em>attachments()</em> (returns integer indicating number of attachments; since version 1.2179)</li>
|
|
|
|
<li><em>attachments()</em> (returns an integer indicating number of attachments; since version 1.2179)</li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
<p>Example condition:</p>
|
|
|
|
<p>Example conditions:</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@.*"</code></p>
|
|
|
|
|
|
|
|
<p><code>!onBlocklist() && hasMx() && attachments() > 0</code></p>
|
|
|
|
<p><br></p>
|
|
|
|
<p><br></p>
|
|
|
|
<p><strong>Actions</strong></p>
|
|
|
|
<p><strong>Actions</strong></p>
|
|
|
|
<p>You can select one of these actions to apply to matching messages:</p>
|
|
|
|
<p>You can select one of these actions to apply to matching messages:</p>
|
|
|
|