From ebd900363440c5cde48cf5653fd3c3e5721d296a Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 29 Apr 2024 13:38:25 +0200 Subject: [PATCH] Updated FAQ --- FAQ.md | 14 ++++++++------ index.html | 13 +++++++------ 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/FAQ.md b/FAQ.md index c3a6aca6b0..72bdbe19a3 100644 --- a/FAQ.md +++ b/FAQ.md @@ -2765,7 +2765,7 @@ The following extra variables are available: * *to* (array) * *subject* (string) * *text* (string) -* *hasAttachments* (boolean; deprecated, use function *attachments()*) +* *hasAttachments* (boolean; deprecated, use function *attachments()* instead) The following extra operators are available: @@ -2775,14 +2775,16 @@ The following extra operators are available: The following extra functions are available: * *header(name)* (returns an array of header values for the named header) -* *blocklist()* (version 1.2176-1.2178; deprecated) +* *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 boolean indicating if the from/reply-to address has an associated MX record; since version 1.2179) -* *attachments()* (returns integer indicating number of attachments; 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()* (returns an integer indicating number of attachments; since version 1.2179) -Example condition: +Example conditions: -```header("X-Mailer") contains "Open-Xchange" && from matches ".*service@.*" && !hasAttachments``` +```header("X-Mailer") contains "Open-Xchange" && from matches ".*service@.*"``` + +```!onBlocklist() && hasMx() && attachments() > 0```
diff --git a/index.html b/index.html index fb424a3dbc..63ffa90f2a 100644 --- a/index.html +++ b/index.html @@ -1506,7 +1506,7 @@ X-Google-Original-From: Somebody <somebody+extra@example.org>
  • to (array)
  • subject (string)
  • text (string)
  • -
  • hasAttachments (boolean; deprecated, use function attachments())
  • +
  • hasAttachments (boolean; deprecated, use function attachments() instead)
  • The following extra operators are available: