procmail
[Top] [All Lists]

RE: this recipe generating a one-byte email message...

2001-12-30 15:02:40


At 14:30 2001-12-30 -0500, David Vrona wrote:

:0
* $ ${HEADERS}test123
{
    TAG = "test message match"
}

:0cE
* $ ${HEADERS}ALERT from SonicWALL
{
    TAG = "FORMAT SONICWALL USERID 12345678 TZ +00:00"
}

WHY are you using the 'c' flag?  There is no delivery
occurring here - note
that the action is pretty much identical to the preceeding
recipe, which
didn't require a copy flag.  Are you wanting a copy of the firewall
notification, and if so, why not for the test message as well?

Yes, exactly.  I wanted a copy of the firewall warning to be sent to me.

I didn't have a c in there on the test message as I was primarily testing
the delivery to the "remote" address.



:0 fw
* !  TAG ?? ^^^^
*   ^Subject: *\/[^ ].*
| $FORMAIL -I "Subject: $TAG" | $SENDMAIL sonicwall(_at_)dshield(_dot_)org

Then, in addition to the COPY you do above this, THIS rule is
a FILTER (f),
which means that the action of delivering it to sendmail will
occur, but
the OUTPUT of sendmail (on stdout) will be passed along as
the message to
following rules.

Lose the 'f' here.


Ok, I'll give that a try.

Thanks!

dave

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