procmail
[Top] [All Lists]

grep whitelists and checking return code

2004-07-13 10:52:05
I have found that my grep searched aren't working:

:0
* ?
formail -x"From" -x"From:" -x"Sender:" -x"Reply-To:" -x"Return-Path:" -x"To:
" \
    | egrep -is -f ~/.procmail/white.lst

If I,
# echo "test" | egrep -is -f ~/.procmail/white.lst
# echo $?
1
# echo "xxxtest" | egrep -is -f ~/.procmail/white.lst
# echo $?
1

So my return code is always 1 even though 'test' is in my whitelist and
'xxxtest' is not.  Can someone verify this same behavior?

Thanks,
-eric wood



____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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