From: Andreas Tindlund <tindlund(_at_)stud(_dot_)ntnu(_dot_)no>
1. Put all e-mail addressed:
^TO_cyberspam(_at_)junkmail(_dot_)com
in the mailfolder called JUNK
:0:
* ^TO_cyberspam(_at_)junkmail\(_dot_)com
JUNK
2. Put all other mail in the folder:
INBOX
See further down . . . It's algorithmically easiwer to do (3) before (2).
Then
3. Forward the e-mail addressed directly to me:
^TO_tindlund(_at_)stud(_dot_)ntnu(_dot_)no
! xxxxxxxx(_at_)sms(_dot_)netcom(_dot_)no
:0 c # `c' says to "clone" the mail for further processing below
* TO_tindlund(_at_)stud\(_dot_)ntnu\(_dot_)no
! xxxxxxxx(_at_)sms(_dot_)netcom(_dot_)no
:0:
INBOX
Suggest, as a starting point, that you look through "man procmailex"
and "man procmailrc". The former, especially, gives multitudinous
useful examples similar to what you were asking about.
--
Netcom has imploded. Please now use NOTnetcom.com for mail.
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Ex-Netcommies: Mail "forwards" for free forwarding service!
NOT affiliated with EarthLink, Inc.'s Netcom brand identity.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail