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 | ||
+ | ^Version | ||
+ | ^Purpose | ||
+ | The **RemoveBag** statement requires a bag name and a value, in the format | ||
+ | RemoveBag <bag name> < | ||
+ | |||
+ | *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 " | ||
+ | AddBag multi bag1 " | ||
+ | AddBag multi bag1 " | ||
+ | AddBag multi bag1 " | ||
+ | AddBag multi bag1 " | ||
+ | |||
+ | #bag1 contains " | ||
+ | |||
+ | RemoveBag bag1 " | ||
+ | |||
+ | #bag1 contains " | ||
+ | </ |