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 revisionBoth sides next 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 [2013/11/25 09:24] paul
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 whole thing 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.txt · Last modified: 2018/11/14 10:45 by 127.0.0.1