From: Joe Reid <the_big_egg(_at_)yahoo(_dot_)com>
What I am trying to do is to create a recipe to filter
emails into seperate folders based on the address they
came from. Hence my email would be saved in a folder
called "The_Big_Egg" and the @yahoo.com would be
chopped.
Which address they came from? From_ (the first line in
a standard mail folder, but created by your system
sendmail, iirc); or From:? The latter can be munged.
Or the Reply-To:? Or the X-Sender-From:, if it exists?
Etc.
Anyway, I will use formail -t and let it decide.
## Find Sender and store value in FROM
FROM = `formail -zrx To:`
## Find local part of Sender address
:0
* FROM ?? ^^\/[^(_at_)]+
{ LOCALNAME = $MATCH }
:0 # save the mail in that filename
$LOCALNAME
--
dman
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail