This shows you the differences between two versions of the page.
Previous revision | |||
— | reference:spamrules_statement_ifinbag [2018/11/14 10:45] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Spam Filter Rules: IfInBag====== | ||
+ | ^Statement | ||
+ | ^Version | ||
+ | ^Purpose | ||
+ | The **IfInBag** statement requires a bag name and value, in the format | ||
+ | IfInBag <bag name> < | ||
+ | |||
+ | *All **IfInBag** statements must be followed by an **EndIf** statement | ||
+ | *You may optionally include an **Else** statement | ||
+ | *The < | ||
+ | |||
+ | |||
+ | =====Examples===== | ||
+ | Basic example | ||
+ | < | ||
+ | IfInBag mybag " | ||
+ | # Statements | ||
+ | EndIf | ||
+ | </ | ||
+ | |||
+ | Using an **Else** statement | ||
+ | < | ||
+ | IfInBag mybag " | ||
+ | # Statements | ||
+ | Else | ||
+ | # Statements | ||
+ | EndIf | ||
+ | </ | ||
+ | |||
+ | Using a regular expression | ||
+ | < | ||
+ | IfInBag mybag "/ | ||
+ | # Statements | ||
+ | EndIf | ||
+ | </ | ||
+ | |||
+ | Using a wildcarded expression | ||
+ | < | ||
+ | IfInBag mybag " | ||
+ | # Statements | ||
+ | EndIf | ||
+ | </ |