procmail
[Top] [All Lists]

Re: misunderstood regexp

2005-07-14 11:09:32
Michelle Konzack:

I am on some Yahoogroup-Lists and I use only:

  :0
  * ^To:.*(list_alim(_at_)yahoogroups(_dot_)com)
  (_dot_)ML_linux(_dot_)list_alim(_at_)yahoogroups_com/

There are a few things I would change: the () around the address can go,
the dot inside the address should be escaped.


For yahoogroups, the Mailing-List: header is more convenient.



To treat the yahoo-lists with a single recipe:

   ML = "
list_alim:linux.list_alim
opendiag:cars.opendiag
"

   :0
   * ^Mailing-List: list \/[^(_at_)]+@yahoogroups.com;
   * MATCH ?? ^^\/[^(_at_)]+
   {
     LISTNAME = "$MATCH"

     :0
     *$ ML ?? ^$\MATCH:\/.*
     { LISTNAME = "$MATCH" }

     :0
     (_dot_)ML_$LISTNAME(_at_)yahoogroups_com/
   }


(untested)

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