This shows you the differences between two versions of the page.
reference:spamrules_statement_foreach_header [2011/08/22 16:51] – created simon | reference:spamrules_statement_foreach_header [2011/08/22 17:32] (current) – removed simon | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======Spam Filter Rules: ForEach Header====== | ||
- | ^Statement | ||
- | ^Version | ||
- | ^Purpose | ||
- | The **ForEach Header** statement requires a loop variable name, in the format | ||
- | ForEach Header <loop variable name> | ||
- | |||
- | On each pass through the loop, the loop variable will contain the current value of the header line. | ||
- | |||
- | All **ForEach Header** statements must be followed by an **EndFor** statement | ||
- | |||
- | |||
- | =====Examples===== | ||
- | The following example loops through each header line and puts it into the ' | ||
- | < | ||
- | ForEach Header HeaderLine | ||
- | Log " | ||
- | EndFor | ||
- | #There should be a separate entry in the log file for each header line | ||
- | </ | ||
- | |||
- | The following example loops through all of the header lines of the message, and look for the ' | ||
- | < | ||
- | ForEach Header HeaderLine | ||
- | | ||
- | # Statements | ||
- | EndIf | ||
- | EndFor | ||
- | </ |