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.
I think "| $SENDMAIL $SENDMAILFLAGS -t" will be required
Is this possible?
Thanks
____________________________________________________________
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