procmail
[Top] [All Lists]

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

2001-07-11 07:34:39
At last this post got into the list! At the 6-7 attempt, had some
mail problems...

* Jeff Haferman (Jeff_Haferman(_at_)yahoo(_dot_)com) wrote:
########################################################################
:0fhw    # filter headers
* ^From(_dot_)*clubsbot(_at_)yahoo(_dot_)com
| $HOME/perl/bin/yahooclub.pl

:0
* ^X-Yahoo.*Clubwhatever
Clubwhatever/.
########################################################################

The perl script will receive the headers from your mail, and
will insert a
X-Yahoo: Clubname
line into the header.

Jeff



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...)


----------------------------------
Jaime Herazo Barrios
jherazo at geocities dot com
ICQ number: 14721935


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