j-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 j-chkmail pattern matching feature. It contains lines with the following syntax :

j-regex

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 -

j-regex

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.

j-regex

URLSTR   50  adultfriendfinder.com
URLEXPR  10  [^ />]+eoffer[s]*\.(com|net|bz|biz|tv)
URLEXPR  10  [^ />]+/unsubscribe

doc/reference/cffiles/j_regex.txt · Last modified: 2009/05/11 00:59 by martins
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0