procmail
[Top] [All Lists]

Suppressing Unwanted Error Message

1997-07-18 18:54:00
    procmail 3.10 under SunOS 4.1.4.  Normally running with 
VERBOSE=off and LOGABSTRACT=no after recipes debugged.

    I have the following fragment in a recipe:

:0 wc
| egrep -is $WHOFROM $USERLIST

where $WHOFROM contains a string to be looked up in the file 
pointed to by $USERLIST.  All I want to know is whether egrep
did or did not find $WHOFROM in $USERLIST.  Yes or no determines 
the subsequent action, so I don't care about any actual messages 
from egrep.

    However, when I tested with a value in $WHOFROM which deliberately
would not be in $USERLIST, procmail made the following entry in the 
log, despite the log settings above:

procmail: Program failure (1) of "egrep"

I already have logic to take care of the case in which the egrep 
"fails," so I don't need this message cluttering up the log.  
Unless I missed it, I did not see anything in the docs to suppress 
this superfluous "error" message.  Hints?

Thanks.
Paul                             <pobart(_at_)access(_dot_)digex(_dot_)net>
----------------------------------------------------------
Paul O. Bartlett, P.O. Box 857, Vienna, VA 22183-0857, USA
Finger, keyserver, or WWW for PGP 2.6.2 public key
Home Page:  http://www.access.digex.net/~pobart

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