procmail
[Top] [All Lists]

Re: exclude rules for percentage of high-bit characters

2005-05-07 04:29:41
William Park:

How about
    http://home.eol.ca/~parkw/index.html#spam

These recipes are rather flaky. Some examples:

  * $ charset=\"?${CHARSET}\"?

should be


  * $ charset=($CHARSET|\"${CHARSET}\")

and the APNIC="(58|59|60|61|202|203|210|211|218|219|220|221|222)"

could be optimized to

   APNIC = '(5[89]|6[01]|2(0[23]|1[0189]|2[012]))'


and the ALL256="[0-9][0-9]?[0-9]?" to

    ALL256 = '([1-9]?[0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])'

or even

    ALL256 = '(([1-9]|1[0-9]|2[0-4])?[0-9]|25[0-5])'


See also http://www.professional.org/procmail/spam.html

-- 
Grtz, Ruud

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail