procmail
[Top] [All Lists]

Re: I need filtering / forwarding help!

2000-10-10 08:20:24
Yes, I finally realized what I had been doing wrong!!  
Horrible mistake, wrote :Oc with the letter O instead of the digit zero...

Now I have another question:

Is it possible to forward the mail with the following conditions
 
        1) removing the sender's name (but not the e-mail address)
        2) letting the subject be untouched
        3) sending only the beginning of the message body
        4) removing ------------(...)------- (e.g. from hotmail
msgs)

and let senders e-mail address, the subject and the beginning of the body 
altogether only occupy e.g. 155 characters not counting:
        a) a new line as a digit
        b) and counting a double space or more spaces only as one
character

How will this code look like?

-a-

On Fri, 6 Oct 2000, Matt Dunford wrote:




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>