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 revisionBoth sides next revision
reference:spamrules_variables [2011/08/22 16:17] – [Bags] simonreference:spamrules_variables [2011/08/22 17:29] – [Bags] simon
Line 30: Line 30:
  
 =====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.txt · Last modified: 2023/08/14 17:01 by paul