procmail
[Top] [All Lists]

Re: Recipe Optimization.

2004-03-03 14:24:47
I am considering using the following recipe to quarantine any message
with some usual domains in the body.

(note: * B ?? ()\/(4u ,...etc is on the same line)

:0
* B ??
()\/.*(4u|4you|foryou|offer|offers|offerz|med|meds|medz|ink|inks|inkz|rx|drug|d
rugs|drugz|marketing|mktng|mktg|viagra|hgh|loan|credit|rate)(=2e|.)(biz|bz|cl|ph
|info|ws|to|ru|org|net|com)
{
LOG="Bodyspam: spamdomain $MATCH in the body of the message $NL"
:0:
$SPAM
}

Can anyone recommend a way to optimize this recipe?

I can think of one easy optimization:

:0
* B ?? ()\/.*(biz|info)
{
  LOG="Bodyspam: spamdomain $MATCH in the body of the message $NL"
  :0:
  $SPAM
}

Unless you correspond with any US schools or state instutions, you
could probably also add us to that list safely.

Otherwise, you can combine many of those terms, e.g.

        offer|offers|offerz

becomes

        offer((s|z)?)

and the same with drug*, ink*, med*

Cheers,

Dave Stone



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>