User Tools

Site Tools


reference:spamrules_statement_removebag

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

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"
reference/spamrules_statement_removebag.txt · Last modified: 2018/11/14 10:45 by 127.0.0.1