procmail
[Top] [All Lists]

RE: How to forward an email and change the Subject by using procm ail?

2000-08-17 20:16:44

Hi There,

I am interested in knowing is it actually possible to append something to the body of the mail itself using formail.
I will appreciate any brain waves.

Regards
Goldy Gill

From: Matt Dunford <matt(_at_)stary(_dot_)zoomedia(_dot_)com>
To: "Yeh, Paul     1047" <paul(_dot_)yeh(_at_)acefis(_dot_)com>
CC: "'procmail(_at_)informatik(_dot_)RWTH-Aachen(_dot_)de'" <procmail(_at_)informatik(_dot_)rwth-aachen(_dot_)de> Subject: RE: How to forward an email and change the Subject by using procm ail?
Date: Thu, 17 Aug 2000 16:55:17 -0700 (PDT)

Read 'man formail' for more info on formail.
Check out the faqs linked from www.procmail.org.

# (untested, of course!)
# f -- use pipe as filter
# h -- filter header info (in this case you're
# changing the Subject header)
:0fh
* Subject:.*test
| formail -I 'Subject: Pls ignore: test'

# A -- if previous recipe succeeds
# forward message with altered Subject
:0A
! c(_at_)myhostname(_dot_)com


On Thu, 17 Aug 2000, Yeh, Paul     1047 wrote:

>Thanks.
>Because I jsut start learning procmail. Can you give me some dtails?
>
>If the Subject is "test", I want to foward this email to "c(_at_)myhostanme(_dot_)com"
>and change the Subject to "Pls ignore: test". How to do that?
>Pls give me the detail recipe.
>
>Thanks very mich,
>
>Paul
>
>-----Original Message-----
>From: Lee Howard [mailto:faxguy(_at_)deanox(_dot_)com]
>Sent: Thursday, August 17, 2000 3:19 PM
>To: Yeh, Paul 1047; 'procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE'
>Subject: Re: How to forward an email and change the Subject by using
>procmail?
>
>
>Use formail in a recipe that catches that particular mail.
>
>Lee Howard
>
>At 03:10 PM 8/17/00 -0700, Yeh, Paul     1047 wrote:
>>     want to send email to user C through user B.
>> And add a new line to that email message.
>>
>> How should I do with the ~B/.procmailrc file to
>> add a new line either in the subject or in the mail body and
>> then send to user C?
>>
>> Thanks,
>>
>> Paul
>


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

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


_______________________________________________
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>