procmail
[Top] [All Lists]

Re: Bouncing messages (was Re: Uses for HOST in procmailrc???)

1996-01-20 22:02:05
David Mazieres <dm(_at_)amsterdam(_dot_)lcs(_dot_)mit(_dot_)edu> writes:
Yes, but how do you write to procmail stderr from within the
procmailrc.  Anything I send to stderr from a "|" or "``" ends up in
my logfile instead.

Uh, hmm, scratch, pause, wellll...

After reading through the source again (3.11pre3), I begin to recall
that this has come up before, and the answer then was "once you set
LOGFILE, you can't get to stderr ever again".  The workaround (as
opposed to a solution, which this isn't) is therefore to place anything
that needs to see the original stderr at the top above the setting of
LOGFILE.  I still think this is a bug, or at least 'non-optimal behaviour',
but as I can't think of any particularly elegant ways to have procmail
do otherwise, I haven't complained very loudly.

Philip Guenther