procmail
[Top] [All Lists]

Matches as folders

1999-04-20 18:53:30

(ObDeclaration:  Yes, I have tried the manpages and the FAQ :))

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?


bekj

-- 
: --Hacker-Neophile-Eclectic-Geek-Grrl-Queer-Disabled-Boychick--
: gossamer(_at_)tertius(_dot_)net(_dot_)au   
http://www.tertius.net.au/~gossamer/
: Everyone takes the limits of his own vision for the limits of
: the world.  -- Arthur Schopenhauer

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