procmail
[Top] [All Lists]

Re: Error filtering spam with Procmail

2005-10-28 10:27:45
Alejandro Cabrera Obed:

my spam tag exactly is:

[**SPAM**]

OK, in a regex you have to make that \[\*\*SPAM\*\*\]



:0
*^X-Spam-Status: Yes
$HOME/spam

You forgot locking there again. mbox-delivery always needs locking.


I think this is wat you are aiming for:


  SHELL   = '/bin/sh'
  LOGFILE = "$HOME/procmail.log"


  :0
  * ! ^X-Spam-Status: Yes
  * ! ^Subject:.*\[\*\*SPAM\*\*\]
  { }
  :0E:
  spam


No need to say $HOME/spam, since de default value of $MAILDIR is $HOME.

You first have to delete the $HOME/spam mbox of course, since it is
corrupt.

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

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