procmail
[Top] [All Lists]

case insensitive $MATCH

2005-04-10 01:14:02
Hi.  I use the following (modified) recipe to filter list mail:

:0:
* ^TO_\/(announce|general)@lists\.example\.com
* MATCH ?? ()\/[^(_at_)]+
lists-$MATCH

To date it has been working fine.  This morning someone sent a mail
to General(_at_)lists(_dot_)example(_dot_)com (capital G), so a new mbox was 
created
lists-General right alongside the already created lists-general
(which is where I want those mails).

Since this is the first time it has happened, I don't know if it is
a rare enough occurrence to not worry about it.  But I just have to
know how to handle it in future.

So the question is - is there a way to extract the match out of the
first condition, then make lower case if not already, to deliver to
the intended mbox?

-- 
T R O Y  P I G G I N S
e : troy(_at_)piggo(_dot_)com

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