procmail
[Top] [All Lists]

Re: Procmail recipe

2006-11-27 08:38:29
Carlos Eduardo R. L. de Miranda schreef:


Please send only plain text messages to any technical mailing list.

DROPPRIVS=yes

MAILDIR=$HOME/Maildir

LOGFILE=/var/log/procmailrc.log

For that to work, all users must be allowed to write to that file. Make
sure that your /var/log/ is not sharing diskspace with critical parts of
your system.


LOGABSTRACT=all

VERBOSE=yes

COMSAT=no

 :0

* !^To:.*(mydomain\.com\.br)   # IF MSG NOT SENT TO OUR DOMAIN >
/dev/null or

* !^Cc:.*(mydomain\.com\.br)   # IF NOT SENT TO OUR DOMAIN >
/dev/null or

* ^Subject:.*(wrote\:)*               # IF THE SUBJECT CONTAINS THE
WORD "wrote:" > /dev/null or

* ^Subject:.*(1\ 2\ 3)*                # IF THE SUBJECT CONSTAIS THE
PHRASE "1 2 3" > /dev/null or

* ^X-mydomain-MailScanner-SpamScore:\ sssss # IF THE MSG SCORES 5s >
/dev/null

{

   :0

   /dev/null/

}

Conditions are AND-ed, so you need to rewrite that. One way:

  :0
  *   ^(To|Cc):(_dot_)*(_at_)mydomain\(_dot_)com\(_dot_)br
  * ! ^Subject:.*(wrote:$|\<1 2 3\>)
  * ! ^X-mydomain-MailScanner-SpamScore: sssss
  { }
  :0E
  suspect/

-- 
Groet, 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

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