procmail
[Top] [All Lists]

Re: procmail send notification to another email address

2006-07-26 19:11:00
On Thu, 27 Jul 2006 01:12:42 +0100 Peter Morton <pete(_at_)nemesisx(_dot_)com> 
wrote:

Hi,

I am trying to get procmail to send only a notification to another email
address whenever an email is received (not the full email).

So far:

SUBJECT=`formail -x Subject:`
FROM=`formail -x From:`

:0chf
| formail -I "Subject: From $FROM regarding $SUBJECT"
! user(_at_)domain(_dot_)com

In addition to this I would like to strip the body of the email, and instead
put in "you have received an email" for example. I cant work out how to get
formail to do this.

The problem is procmail is doing this to the email before it is delivered to
my local mailbox, whereas I need it to deliver the message intact then
modify the message and send it to another email address.

Start at the archive message below and read the rest of the thread by
clicking the "Thread Next" link at the top/bottom of the pages. It's a good
example of what you want to do.

You need to create a NEW notification email rather than using the "!"
forward function.

http://www.xray.mpe.mpg.de/mailing-lists/procmail/2006-04/msg00065.html

Gerald

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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