procmail
[Top] [All Lists]

Re: questions about ^TO_ and MATCH

1999-12-04 13:01:47
Ruud also commented,

vT> If you have a limited number of 'down-casings',
vT> you better use the same 'trick'
vT> that one uses to translate numbers into monthnames or vv.

I'm not sure what "vv" is/are, but I'm also guilty of that trick.

vv was meant to trigger vice versa.


So to combine them,

   :0
   *
^TO_\/(procmail|pine-info|vim|copyediting-l|techwr-l|cygwin|framers|veg-nyc|
faq-maintainers|pine-alpha)@
   * MATCH ?? ()\/[^(_at_)]+


    LISTNAME=$MATCH

    listnames="framers%framers!techwr-l%techwr!copyediting-l%copyediting"

    :0:
    * $ listnames ?? ()$LISTNAME%\/[^!]+
    $MATCH
    :0E:
    $LISTNAME
   }

You could even make use the @ as list-separator, instead of the % ;-)

Ruud


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