procmail
[Top] [All Lists]

Re: I need filtering / forwarding help!

2000-10-09 09:52:06
Try this

:0:
* ^TO_cyberspam(_at_)junkmail\(_dot_)com
JUNK

# forward a copy of emails addressed directly to me
:0c
* ^TO_tindlund(_at_)stud\(_dot_)ntnu\(_dot_)no
! xxxxxxxx(_at_)sms(_dot_)netcom(_dot_)no



On Mon, 9 Oct 2000, Andreas Tindlund wrote:

Thank you, but you didn't answer my question exactly. 

I'll try to reformulate my problem:

1. Put all e-mail addressed:
  ^TO_cyberspam(_at_)junkmail(_dot_)com
  in the mailfolder called JUNK

2. Put all other mail in the folder:
  INBOX

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


With the recipie you gave me only the e-mail that was not forwarded was
put in INBOX. I want all e-mail (except from junk-mail) in my INBOX, and
then forward some of the e-mail (the ones that are addressed directly to
me) to xxxxxxxx(_at_)sms(_dot_)netcom(_dot_)no

Please - help me!  I'm desperate...


-a-




On Fri, 6 Oct 2000, Andreas Tindlund wrote:

Hi, I'm very new to procmail, and I've tried to figure out how to solve my
problem on several web sites etc, but it never works!

I want to

a) Put all spam mail in a Junk folder
b) Receive the rest of the mail in my INBOX folder
c) Forward all e-mail addressed directly to me 
tindlund(_at_)stud(_dot_)ntnu(_dot_)no to
another address : xxxxxxxx(_at_)sms(_dot_)netcom(_dot_)no   

The last address xxxxxxxx(_at_)sms(_dot_)netcom(_dot_)no sends the e-mail 
as SMS to my
GSM phone.

Can anyone please help me with the .procmailrc source code ?!

a) can be done in many different ways.  It depends on how strict you
want to be.  I use rblcheck in my recipes.  You may want to do a
search on the web for more info on how to set that up.

c)

# forward message to your phone
:0
* ^TO_tindlund(_at_)stud\(_dot_)ntnu\(_dot_)no
! xxxxxxxx(_at_)sms(_dot_)netcom(_dot_)no

b)

# put all remaining mail in INBOX folder
:0:
INBOX




_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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