On Wed, Jul 13, 2005 at 10:02:41PM -0600, Scott wrote:
I have the following recipe:
REPLY_MESSAGE="This is a test reply.."
DATE_OK=`/etc/procrcs/check_date 20050713180000 20050714180000`
:0 h c
* !^FROM_DAEMON
* !^X-Loop: scott(_at_)mydomain(_dot_)com
* !DATE_OK ?? NO
| (formail -r -I"Precedence: junk" \
-A"X-Loop: scott(_at_)mydomain(_dot_)com" ; \
echo "$REPLY_MESSAGE" ) | $SENDMAIL -f scott(_at_)mydomain(_dot_)com
-t
But for some reason no matter where the email comes from I get the
following in my log:
procmail: Assigning "DATE_OK=YES"
procmail: No match on !
"(^(Mailing-List:|Precedence:.*(junk|bulk|list)|To: Multiple recipients
And no response gets sent, yet if I comment out the FROM_DAEMON line it
will respond. I have tested from Gmail, and my system running
Thunderbird. Any help would be greatly appreciated..
Well, gee. You are sending a system message, I presume, that is getting
parsed? A system message will show as a daemon.
Btw, your "DATE_OK" line is not testing for equivalence, but only
whether the string is contained in the var. For example, this
would pass that condition:
DATE_OK = "ERROR 51"
And this would fail, I think:
DATE_OK = "yesnomaybe"
If check_date can only spit out "yes or "no", you're okay. Otherwise,
put anchors there.
* ! DATE_OK ?? ^^NO^^
(Why not use the positive?
* DATE_OK ?? ^^YES^^
)
dman
____________________________________________________________
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