procmail
[Top] [All Lists]

Re: Invalid null command

1998-02-03 08:30:58
Hermann Wecke asked,

: Where is the bug? I'm receiving "Invalid null command.".

I've never heard of that before, but I see three problems:

: | formail -rtkb -I"Subject: Message rejected (was: $MATCH)" -I"From:
: postmaster(_at_)wecke(_dot_)com" -I"Precedence: junk"; \
: | $SENDMAIL $SENDMAILFLAGS -t

There's no continuation backslash between From: and postmaster, and you
have a semicolon stopping things before the second pipe, so there is nothing
getting piped to $SENDMAIL $SENDMAILFLAGS -t.  (Most likely the message is
coming from the shell rather than procmail.)  Take out the semicolon.

: :0
: *$  1^1 \/$BAN_REGEXP
: *$ -1^1 ^Subject:.*$BAN_REGEXP
: /dev/null

The leading backslash trap will get you there; you probably don't need to
extract there, so just take out the "\/".  If you do need to extract, protect
the leading backslash with an empty pair of parentheses or with another
backslash.  Right now you're looking for /$BAN_REGEXP, which you probably
won't find.

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