procmail
[Top] [All Lists]

Re: handle spam in local inbox

2005-07-31 08:19:43
Thanks Ruud, i will try to implement it from within exim (my mta) and 
will up2date the list.

Thanks again.

jonathan




Ruud H.G. van Tol wrote:
Jonathan Gonzalez:


watch for email with subject [SPAM?] in the inbox (maildir format). If
found check for the existence of a SPAM folder.


Normally, procmail runs just before the mail is delivered to the Inbox.
So with procmail you can decide to deliver it somewhere else. Whether
the Inbox is a maildir format or something else, shouldn't matter to
you. Any mail that falls through the user's ~/.procmailrc, should go to
the user's Inbox, as if procmail was not there.



If exists then move
the checked email to that folder. If the folder don't exist create it
and then move the email there.



  MAILDIR = "$HOME/mail"   # make sure it exists

  :0
  * ^Subject: \[SPAM\?]$
  SPAM/


If a '[SPAM?]'-tag is inserted at the start of the existing Subject,
then remove the '$' at the end of the condition.

  :0
  * ^Subject: \[SPAM\?]
  SPAM/

The slash at the end of 'SPAM/' handles all maildir stuff.


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