Refactoring

This commit is contained in:
M66B 2024-04-30 07:45:25 +02:00
parent c131de5f0e
commit 5f4c1f1ce1
3 changed files with 3 additions and 3 deletions

2
FAQ.md
View File

@ -2785,7 +2785,7 @@ The following extra functions are available:
* *attachments()* (returns an integer indicating number of attachments; since version 1.2179)
* *Jsoup()* (returns an array of selected strings; since version 1.2179)
* *Size(array)* (returns the number of items in an array; since version 1.2179)
* *Known()* (returns a boolean indicating that the from/reply-to address is in the Android address book or in the local contacts database)
* *knownContact()* (returns a boolean indicating that the from/reply-to address is in the Android address book or in the local contacts database)
Example conditions:

View File

@ -114,7 +114,7 @@ public class ExpressionHelper {
configuration.getFunctionDictionary().addFunction("attachments", fAttachments);
configuration.getFunctionDictionary().addFunction("Jsoup", fJsoup);
configuration.getFunctionDictionary().addFunction("Size", fSize);
configuration.getFunctionDictionary().addFunction("Known", fKnown);
configuration.getFunctionDictionary().addFunction("knownContact", fKnown);
configuration.getOperatorDictionary().addOperator("Contains", oContains);
configuration.getOperatorDictionary().addOperator("Matches", oMatches);

View File

@ -1524,7 +1524,7 @@ X-Google-Original-From: Somebody &lt;somebody+extra@example.org&gt;</code></pre>
<li><em>attachments()</em> (returns an integer indicating number of attachments; since version 1.2179)</li>
<li><em>Jsoup()</em> (returns an array of selected strings; since version 1.2179)</li>
<li><em>Size(array)</em> (returns the number of items in an array; since version 1.2179)</li>
<li><em>Known()</em> (returns a boolean indicating that the from/reply-to address is in the Android address book or in the local contacts database)</li>
<li><em>knownContact()</em> (returns a boolean indicating that the from/reply-to address is in the Android address book or in the local contacts database)</li>
</ul>
<p>Example conditions:</p>
<p><code>header("X-Mailer") contains "Open-Xchange" &amp;&amp; from matches ".*service@.*"</code></p>