/usr/share/doc/rblcheck/examples/test_rblcheck.sh is in rblcheck 20020316-9.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #!/bin/sh
# Quick test script to try the messages in a Maildir for whether they
# are filtered by the RBL. Good for testing to see if mail you receive
# now would be caught in a filter.
#
# $Id: test_rblcheck.sh,v 1.6 2000/04/21 15:22:57 logic Exp $
#
# $Log: test_rblcheck.sh,v $
# Revision 1.6 2000/04/21 15:22:57 logic
# Update to current cvs tree.
#
# Revision 1.1.1.1 1998/01/09 20:42:50 emarshal
# Initial import into CVS.
#
MAILDIR=$HOME/Maildir
for i in $MAILDIR/new/* $MAILDIR/cur/*
do
x="`cat $i | ./origip`"
if [ -z "$x" ]
then
echo "failure: $i"
else
rblcheck "$x"
fi
done
|