On Sunday, February 2, 2003, at 09:55 PM, Keerthi wrote:
Hello All,
I'm using procmail in my Linux mail server. I want to do the following
using procmail
when i receive a mail to an id then another mail should be sent to
other mail id with the message like "A mail is recived from
<abc(_at_)xyx(_dot_)com> with the subject <subject of the mail>".
:0
* ^Subject:(.*\<)\/[^ ].*
{
SUB = $MATCH
}
:0
* ^From:(.*\<)\/[^ ].*
{
FRM=$MATCH
}
:0c
| (formail -r -A"From: Procmail Alert <whatever(_at_)host(_dot_)tld>" \
-A"To: user(_at_)someplace(_dot_)tld"
-A"Subject: Email Alert" ; echo ""; \
echo "A message was received from $FRM with the subject
$SUB" \
| $SENDMAIL -t
I think that will do it.
--
"I don't think the kind of friends I'd have would care."
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail