On Tue, Jul 13, 2004 at 01:28:15PM -0400, Eric Wood wrote:
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?
Sorry, no can do.
$ printf 'test(_at_)example(_dot_)com\ntesting\n' > .wltest
$ echo 'testing' | egrep -qisf .wltest
$ echo $?
0
$ echo 'test' | egrep -qisf .wltest
$ echo $?
1
$ echo 'test(_at_)example(_dot_)com' | egrep -qisf .wltest
$ echo $?
0
$
--
Paul Chvostek
<paul(_at_)it(_dot_)ca>
Operations / Abuse / Whatever
it.canada, hosting and development http://www.it.ca/
____________________________________________________________
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