User Tools

Site Tools


reference:spamrules_statement_removebag
no way to compare when less than two revisions

Differences

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


Previous revision
reference:spamrules_statement_removebag [2018/11/14 10:45] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +======Spam Filter Rules: RemoveBag======
 +^Statement  |RemoveBag |
 +^Version  |2.2.1+ |
 +^Purpose  |Removes a specified value from a bag |
  
 +The **RemoveBag** statement requires a bag name and a value, in the format
 +  RemoveBag <bag name> <value>
 +
 +  *If the value is found in the bag, it is removed
 +  *If a value occurs multiple times, only the first instance of that value is removed
 +  *If the value is not present in the bag, nothing happens
 +
 +=====Example=====
 +<code>
 +AddBag multi bag1 "left"
 +AddBag multi bag1 "right"
 +AddBag multi bag1 "left"
 +AddBag multi bag1 "right"
 +AddBag multi bag1 "left"
 +
 +#bag1 contains "left", "right", "left", "right", "left"
 +
 +RemoveBag bag1 "left"
 +
 +#bag1 contains "right", "left", "right", "left"
 +</code>
reference/spamrules_statement_removebag.txt · Last modified: 2018/11/14 10:45 by 127.0.0.1