procmail
[Top] [All Lists]

Re: ER with brackets don't works

2006-08-16 08:26:18

On Sat, 12 Aug 2006, Michelle Konzack wrote:

Am 2006-08-01 17:21:39, schrieb Ruud H.G. van Tol:
Eriberto schreef:

I want to destroy the viagra messages. I made  this rule:

  :0
  * ^Subject.*V[a-z]?I[a-z]?A[a-z]?G[a-z]?R[a-z]?A
  /dev/null

Often such subjects are encoded.

   :0:
   * ^Subject:.*=\?[^?]*\?[bq]\?[^?]*\?=
   in.suspect

This would work for those peoples using only US-ASCII.

        If =?big5? ...  It works for chinese too :-)
        and =?iso-2022-jp? for japanese

Bye,
  Udi



If I do this, I would trash arround 90% of legitimate messages.
If I get such messages I do a prefiltering with mimedecode.

You might like trying this too:

   S = '[^ ]?'
   V = '([Vv]|\/|\||\|/)'
   I = '[Ii1l|]'
   A = '([Aa]|/\)'
   G = '[Gg9]'
   R = '[Rr]'

   VERBOSE = YES

   :0:
   * ^Subject:\/.*
   *$ MATCH ?? $V$S$I+$S$A+$S$G$S$R$S$A
   in.suspect

   VERBOSE = NO

WOW!

Greetings
   Michelle Konzack
   Systemadministrator
   Tamay Dogan Network
   Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                  50, rue de Soultz         MSM LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)


____________________________________________________________
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






************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer 
viruses.
************************************************************************************




____________________________________________________________
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

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