User Tools

Site Tools


how_to:write_your_own_spam_filter_rules

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
how_to:write_your_own_spam_filter_rules [2011/08/31 16:54] – link to reference section documentation simonhow_to:write_your_own_spam_filter_rules [2018/11/14 10:45] (current) – external edit 127.0.0.1
Line 16: Line 16:
 </code> </code>
  
-If you put the text to search for in quotes, then VPOP3 will do a simple substring match. For more flexibility you can use regular expressions, and surround the regex pattern in '/' characters. VPOP3 uses PCRE regexes.+If you just have the text to search for, then VPOP3 will do a simple substring match. For more flexibility you can use regular expressions, and surround the regex pattern in '/' characters. VPOP3 uses PCRE regexes. If the search text or regular expression contains spaces, then you need to surround the search expression with " quotes.
  
 eg eg
Line 25: Line 25:
 Body /this\s+is\s+a\s+message\s+body\s+(phrase|sentence)\s+to\s+(check|test)\s+for/i 100 Body /this\s+is\s+a\s+message\s+body\s+(phrase|sentence)\s+to\s+(check|test)\s+for/i 100
 AnyText /this\s+is\s+something\s+to\s+check\s+for\s+in\s+the\s+subject\s+(?i:OR)\s+body/ 100 AnyText /this\s+is\s+something\s+to\s+check\s+for\s+in\s+the\s+subject\s+(?i:OR)\s+body/ 100
 +Body "/this is a regular[- ]expression with spaces in/i" 100
 EndBulkScan EndBulkScan
 </code> </code>
  
how_to/write_your_own_spam_filter_rules.1314806075.txt.gz · Last modified: 2018/11/14 10:44 (external edit)