procmail
[Top] [All Lists]

Re: extracting RE arguments from the matching string

2002-05-09 08:23:14
Giles asked,

| I'm trying to generate new mail folders depending on the generic contents
| of a string, with something along the lines of this (which doesn't work):
|
| :0
| * ^List-Local:(.*)
| $1
|
| In other words, on reciept of an email with header 'List-Local: foo', the
| mail should be written to a mailbox called 'foo'.
|
| Is this possible at all?

 :0: # brackets enclose caret, space, tab
 * ^List-Local:.*\/[^     ].*
 $MATCH

Read the parts of the procmailrc(5) manual about MATCH.



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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