HI
original question;
Can someone provide me with the correct syntax for splitting off the pre
'@' bit of the senders address and putting the mail a file (not mh)
called this?
The main answers were forms of;
You mean like this? (It's not foolproof, as it always operates on the
From: address and assumes there is only one @ in it. It might also act
funny on stuff like address+weirdness(_at_)site(_dot_)com(_dot_))
:0
* ^From:(.*\<)?\/[^@<> ]+@
{
:0
* MATCH ?? ^^\/[^(_at_)]+
{ FOLDER="$MATCH" }
:0
$FOLDER
}
Additionally I would like to do the same with mail I send.
Thanks to all.
Regards,
Stephen.
--
Stephen Johnston Phone: +49 89 32006 443
UNIX Sysadmin Fax: +49 89 32006 380
SERCO GmbH at European Southern Observatory
Karl-Schwarzschild-Strasse 2
mailto:sjohnsto(_at_)eso(_dot_)org
D-85748 Garching bei Muenchen http://www.eso.org