User Tools

Site Tools


reference:spamrules_variables

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
reference:spamrules_variables [2011/08/22 16:17] – [Bags] simonreference:spamrules_variables [2023/08/14 17:01] (current) – [Built-in variables] paul
Line 21: Line 21:
 ^${RegExMatches}  |The number of regular expression matches from the last match expression |2.2.1+ | ^${RegExMatches}  |The number of regular expression matches from the last match expression |2.2.1+ |
 ^${''<n>'' |e.g. **${1}** - The result of the previous regular expression match corresponding to the specified number. e.g. **${0}** gives the full string which matched the previous regular expression, **${1}** gives the string which matched the first parenthesised expression in the previous regular expression, and so on.|2.2.1+ | ^${''<n>'' |e.g. **${1}** - The result of the previous regular expression match corresponding to the specified number. e.g. **${0}** gives the full string which matched the previous regular expression, **${1}** gives the string which matched the first parenthesised expression in the previous regular expression, and so on.|2.2.1+ |
-^${Weight_''<name>'' |The currently configured weight for a particular settings |2.2.1+ |+^${Weight_''<name>'' |The currently configured weight for a particular setting |2.2.1+ |
 ^${DNSServers}  |The DNS servers to use for DNS lookups |2.3.0+ | ^${DNSServers}  |The DNS servers to use for DNS lookups |2.3.0+ |
 ^${BayesSize}  |The number of messages the Bayesian database covers |2.3.0+ | ^${BayesSize}  |The number of messages the Bayesian database covers |2.3.0+ |
Line 28: Line 28:
 ^${AuthSender}  |Returns the authenticated sender's username if the message is received using SMTP |2.4.5+ | ^${AuthSender}  |Returns the authenticated sender's username if the message is received using SMTP |2.4.5+ |
 ^${AnyInvalidRecipients}  |Returns '1' if any recipients of the message are non-existent local users |2.4.7+ | ^${AnyInvalidRecipients}  |Returns '1' if any recipients of the message are non-existent local users |2.4.7+ |
 +^${VPOP3Version}  |The current VPOP3 version number (eg "6.15") |6.0 | 
 +^${BATV} | Whether BATV is used (SMTP msgs only) 0 or 1 |6.15 | 
 +^${SPFResult} | SPF test result (SMTP msgs only) |6.15 | 
 +^${DKIMResult} | DKIM test result (SMTP msgs only) |6.15 | 
 +^${SMTPHelo} | SMTP Helo String (SMTP msgs only) |6.15 | 
 +^${SMTPReverseDNS} | Reverse DNS of SMTP client (SMTP msgs only) |6.15 | 
 +^${DMARCResult} | Result of DMARC test (SMTP only) - pass,fail,temperror,permerror | 7.8 | 
 +^${DMARCDisposition} | Policy result of DMARC (SMTP only) - none, reject, quarantine | 7.8 | 
 +^${DMARCDomain} | Policy domain of DMARC (SMTP ony) | 7.8 | 
 +^${TimeNow} | Time now in ISO-8601 (Zulu) format | 8.6 | 
 +^${TimeNowDays} | Time now in fractional days since 1st Jan 1601 | 8.6 | 
 +^${RFC822TimeNow} | Time now in RFC 822 Date header format | 8.6 |
 =====Bags===== =====Bags=====
-The VPOP3 spam filter script language also supports 'Bags' which can contain collections of data. See [[spamrules_statement_addbag|AddBag]], [[spamrules_statement_removebag|RemoveBag]], [[spamrules_statement_ifinbag|IfInBag]], [[spamrules_statement_foreach_bag|ForEach Bag]] and [[spamrules_statement_clearbag|ClearBag]]. +The VPOP3 spam filter script language also supports 'Bags' which can contain collections of data. See [[spamrules_statement_addbag|AddBag]], [[spamrules_statement_removebag|RemoveBag]], [[spamrules_statement_ifinbag|IfInBag]], [[spamrules_statement_foreach|ForEach Bag]] and [[spamrules_statement_clearbag|ClearBag]]. 
  
 'Bags' are similar to "Arrays" or "Sets" in other languages in that they can store multiple items of data, however the data cannot be accessed individually, you can use **ForEach Bag** to iterate through the data, or **IfInBag** to check if a specific item exists in the data. 'Bags' are similar to "Arrays" or "Sets" in other languages in that they can store multiple items of data, however the data cannot be accessed individually, you can use **ForEach Bag** to iterate through the data, or **IfInBag** to check if a specific item exists in the data.
  
reference/spamrules_variables.1314026275.txt.gz · Last modified: 2018/11/14 10:44 (external edit)