procmail
[Top] [All Lists]

Re: Error with a :0f recipe

1998-04-17 15:19:08
Julien CASSAIGNE <cassaign(_at_)iml(_dot_)univ-mrs(_dot_)fr> writes:
I have the following recipe

:0fc
* $^From:.*(${RECIP_REGEXP})
| formail -a "Reply-To: gourous(_at_)eleves(_dot_)ens(_dot_)fr (Compte 
Gourous)"

which is meant to insert a Reply-To: line in messages coming from
certain people.  It works very well most of the time, but once in
a while (several messages a day go through this recipe, and the error
accurs about once per month) I get the following error:

procmail: Extraneous filter-flag ignored
procmail: Error while writing to ""
procmail: Skipped "| formail -a "Reply-To: 
gourous(_at_)eleves(_dot_)ens(_dot_)fr (Compte Gouro
us)""

The above errors indicate that there's a blank line in your
.procmailrc.  The version of procmail processing your .procmailrc is
interpreting this as a action line with the empty mailbox name.  Since
the filter-flag makes no sense when writing to a mailbox, you get the
"Extraneous foo-flag ignored" warning, followed by the error when
writing to the bogus mailbox.  Then when procmail gets to the real
action line, it skips it as a neither a recipe start nor a variable
assignment.  Since procmail skips such blank lines in versions 3.11pre4
and later, your procmail is not truly being processed with 3.11pre4.

BTW: it is incorrect to include the 'c' flag with the 'f' flag: it is
implicit in the action of the 'f' flag to continue.


Philip Guenther

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