procmail
[Top] [All Lists]

The recipe to catch and send everything else ?

1998-04-17 20:18:52
Can somebody send me the recipe to put at the end of a .procmailrc
that will forward all unhandled mail to a certain location.

thank in advance

Philip Guenther wrote:

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

-- 
John Goodsen          Saguaro Software, Inc. / Training & Consulting in:
jgoodsen(_at_)saguarosoft(_dot_)com      - User Centered Systems Analysis
http://www.saguarosoft.com    - Object Oriented Architecture and Design
602.283.0142                  - Rapid Incremental Delivery S/W Process
888.298.2566

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