ze-regex - Pattern matching configuration file

This feature still exists only for historic reasons and to solve very specific situations. Regular expressions are too resource consuming, may easily generate false positives and aren't effective enough. This feature shall be used only to reject some specific spams which can't be detected by some other means.

This file is used to configure ze-filter pattern matching feature. It contains lines with the following syntax :

WHERE      SCORE     REGULAR EXPRESSION
  • WHERE - where or what to look for
  • SCORE - a positive integer number
  • REGULAR EXPRESSION - a regular expression to look for.
  1. Expressions to be matched against full text
    • BODY -
    • HEADERS -
    • FROM -
    • SUBJECT -
    • HELO -
    • ANYWHERE -
BODY       15   (add|gain).{1,20}inches
SUBJECT    15   SEXUALLY EXPLICIT
  1. Expressions to be matched only against URIs
    • URLSTR - This is a string to be looked at the hostname of URLs
    • URLEXPR - This is a regular expression to be looked at URLs.
URLSTR   50  adultfriendfinder.com
URLEXPR  10  [^ />]+eoffer[s]*\.(com|net|bz|biz|tv)
URLEXPR  10  [^ />]+/unsubscribe
doc/reference/cffiles/ze_regex.txt · Last modified: 2017/12/01 13:21 (external edit)
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0