From ce165ccee5483ffca761fbc3b64236ecb16b9fb4 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 26 Jul 2025 15:04:29 +0200 Subject: [PATCH] Updated FAQ --- FAQ.md | 8 ++++---- index.html | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/FAQ.md b/FAQ.md index db42062260..61b5fb97a0 100644 --- a/FAQ.md +++ b/FAQ.md @@ -2966,20 +2966,20 @@ The following extra operators are available: The following extra functions are available: -* *header(name)* (returns an array of header values for the named header) +* *header("name")* (returns an array of header values for the named header) * *blocklist()* (version 1.2176-1.2178; deprecated, use *onBlocklist()* instead) * *onBlocklist()* (returns a boolean indicating if the sender/server is on a DNS blocklist; since version 1.2179) * *hasMx()* (returns a boolean indicating if the from/reply-to address has an associated MX record; since version 1.2179) -* *attachments(regex)* (returns an integer indicating number of attachments; since version 1.2179; optional regex to select the names since version 1.2194) +* *attachments("regex")* (returns an integer indicating number of attachments; since version 1.2179; optional regex to select the names since version 1.2194) * *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) * *knownContact()* (returns a boolean indicating that the from/reply-to address is in the Android address book or in the local contacts database) * *AI(prompt)* (perform interference with the configured AI model using the specified prompt, returning the result as a string; since version 1.2243) -* *Is(flag)* (flag is one of seen, answered, flagged, deleted; to check if a message is read (seen), starred (flagged), etc.; since version 1.2277) +* *Is("flag")* (flag is one of seen, answered, flagged, deleted; to check if a message is read (seen), starred (flagged), etc.; since version 1.2277) Example conditions: -```header("X-Mailer") contains "Open-Xchange" && from matches ".*service@.*"``` +```header("X-Mailer") contains "Open-Xchange" && from matches ".*service@.*" && Is("seen")``` ```!onBlocklist() && hasMx() && attachments() > 0``` diff --git a/index.html b/index.html index 978d396ba7..0cec8d60dc 100644 --- a/index.html +++ b/index.html @@ -1629,19 +1629,19 @@ X-Google-Original-From: Somebody <somebody+extra@example.org>

The following extra functions are available:

Example conditions:

-

header("X-Mailer") contains "Open-Xchange" && from matches ".*service@.*"

+

header("X-Mailer") contains "Open-Xchange" && from matches ".*service@.*" && Is("seen")

!onBlocklist() && hasMx() && attachments() > 0

(received + 7*24*60*60*1000) < DT_DATE_TO_EPOCH(DT_NOW())

AI("Is the message below a scam? Answer in English with just yes or no.") contains "yes"