User Tools

Site Tools


reference:spamrules_statement_ifmatch

Differences

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

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
reference:spamrules_statement_ifmatch [2011/08/22 14:37] – created simonreference:spamrules_statement_ifmatch [2011/08/24 15:21] simon
Line 6: Line 6:
 **IfMatch** statements require a data parameter and a search value, in the format **IfMatch** statements require a data parameter and a search value, in the format
   IfMatch <data> <search>   IfMatch <data> <search>
 +
 +The **IfMatch** statement must be terminated with an **EndIf** and may contain an **Else** statement, just like the [[spamrules_statement_if|If]] statement.
  
 =====Data===== =====Data=====
Line 11: Line 13:
 ^${variable}  |Allows you to search a variable's content |2.1.7 | ^${variable}  |Allows you to search a variable's content |2.1.7 |
 ^text  |This searches any plain text part of the message, but does not search attachments |2.1.7 | ^text  |This searches any plain text part of the message, but does not search attachments |2.1.7 |
-^texta  |This searches any plain text part of the messageincluding plain text attachments |2.1.7 |+^texta  |This performs the same task as **text**but also searches plain text attachments |2.1.7 |
 ^body  |This searches any plain text or HTML part of the message. HTML parts have the HTML tags stripped out and are converted to plain text before searching them.|2.1.7 | ^body  |This searches any plain text or HTML part of the message. HTML parts have the HTML tags stripped out and are converted to plain text before searching them.|2.1.7 |
-^bodya  |This is performs the same task as **body**, but also searches plain text attachments |2.1.7 |+^bodya  |This performs the same task as **body**, but also searches plain text attachments |2.1.7 |
 ^anytext  |This performs the same task as **body**, but also searches the subject line |2.1.7 | ^anytext  |This performs the same task as **body**, but also searches the subject line |2.1.7 |
 ^anytexta  |This performs the same task as **bodya**, but also searches the subject line |2.1.7 | ^anytexta  |This performs the same task as **bodya**, but also searches the subject line |2.1.7 |
Line 53: Line 55:
 ^D  |The dollar character matches only at the end of the search string. Without this, it can also match immediately before the final character if it is a newline character. | ^D  |The dollar character matches only at the end of the search string. Without this, it can also match immediately before the final character if it is a newline character. |
 ^U  |The search will be “ungreedy” instead of the default mode of greedy. | ^U  |The search will be “ungreedy” instead of the default mode of greedy. |
- 
-The **IfMatch** statement must be terminated with an **EndIf** and may contain an **Else** statement, just like the [[spamrules_statement_if|If]] statement. 
  
  
reference/spamrules_statement_ifmatch.txt · Last modified: 2018/11/14 10:45 by 127.0.0.1