message count files
Clint Adams
schizo at debian.org
Wed Dec 3 17:17:47 CET 2003
> Attached is a copy of script msg-count.sh which will be an official part
The binary -o to test is an X/Open extension.
Also, I suggest a less generic name for the script.
--- /tmp/msg-count.sh.orig 2003-12-03 11:14:48.000000000 -0500
+++ /tmp/msg-count.sh 2003-12-03 11:15:40.000000000 -0500
@@ -5,7 +5,7 @@
# performs lexical analysis and database lookup
# and converts an email to the msg-count format
#
-if [ "x$1" = "x-?" -o "x$1" = "x-h" ]; then
+if [ "x$1" = "x-?" ] || [ "x$1" = "x-h" ]; then
cat <<EOT
NAME
msg-count.sh - lexical analysis and database lookup for an email message
@@ -55,7 +55,7 @@
exit
fi
-if [ -z "$1" -o -f "$1" ] ; then
+if [ -z "$1" ] || [ -f "$1" ] ; then
( echo .MSG_COUNT ; $BOGOLEXER -p $* | sort -u ) | \
$BOGOUTIL -w $BOGOFILTER_DIR | \
awk 'NF == 3 { printf( "\"%s\" %s %s\n", $1, $2, $3 ) } '
More information about the bogofilter-dev
mailing list