File: test_rblcheck.sh

package info (click to toggle)
rblcheck 20020316-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 516 kB
  • ctags: 39
  • sloc: ansic: 400; makefile: 139; sh: 39; awk: 27; perl: 12
file content (28 lines) | stat: -rwxr-xr-x 601 bytes parent folder | download | duplicates (7)
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