Bek Oberin <gossamer(_at_)tertius(_dot_)net(_dot_)au> writes:
I have a bunch of mail that comes from *(_at_)netizen(_dot_)com(_dot_)au,
where the
wildcard may be any of a bunch of different things. I want these mail
saved to folders named netizen.*, where the * is the same wildcard.
Eg, mail from training-project(_at_)netizen(_dot_)com(_dot_)au ends up in
netizen.training-project, mail from clients(_at_)netizen(_dot_)com(_dot_)au
ends up in
netizen.clients. Etc etc etc.
I can't figure out how to make $MATCH do this because the piece of
the address I'm trying to catch is NOT at the end of the regexp. DO
I have to write something like:
:0:
* From: (_dot_)*(_at_)netizen(_dot_)com(_dot_)au
* From: \/[^(_at_)]+
netizen.$MATCH
or is there a way to do it in one line?
Well, I would probably match the second line a match against MATCH itself:
:0:
*
^From:(.*[^-a-z0-9_.])?\/[-a-z0-9_(_dot_)]+(_at_)netizen\(_dot_)com\(_dot_)au([^-a-z0-9_.]|$)
* MATCH ?? ^^\/[^(_at_)]+
netizen.$MATCH
Philip Guenther