procmail
[Top] [All Lists]

Re: Yahoo! Clubs, or how to create a mailbox from the subject

2001-07-11 17:01:57
On Wed, Jul 11, 2001 at 09:18:07AM -0500, jherazo(_at_)geocities(_dot_)com 
wrote:
Yeah. Sounds fine. But can i do in procmail like i can do in perl,
taking a part of a matched regex and use it? up there the second part
would be like

:0
* ^X-Yahoo\:\ (.*)$
$1


That's how it would be in perl, taking the parenthesized part as $.

Does it work like that in procmail? i can't seem to find something
about it on the docs (but then again i have the flu and am not in 
the best of my capacities...)

:0:
* ^X-Yahoo:[    ]\/.*
$MATCH

Where the brackets contain a literal space and tab. No need to escape the :,
or anchor the end of the line. $MATCH contains everything after the \/

-- 
Every man should know how to make at least one drink from a foreign country,
preferably one taught to him by a local female with whom he has had a
complicated, unresolved, and quite possibly dangerous dalliance.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail