procmail
[Top] [All Lists]

Re: How to filter aldready delivered email

2004-12-08 06:39:13
Toen wij Jan Banan kietelden, kwam er dit uit:

2. Is it possible to convert the maildrop filter rules (~/.mailfilter)
to procmail filter rules? The rules in maildrop are very simple, like:
if ((/^Sender: *thelist-list-bounces\(_at_)list\(_dot_)com/))
{
   to "./Maildir/.thelist/."
}


  # MAILDIR = "$HOME/Maildir"

  :0
  * ^Sender: (_dot_)*thelist-list-bounces(_at_)list\(_dot_)com
  .thelist/



If your listnames are strictly alphanumerical:

  :0
  * ^Sender: .*\/[a-z0-9]+-list-bounces(_at_)list\(_dot_)com
  * MATCH ?? ^^\/[a-z0-9]+
  .IN.list.$MATCH/


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