2
# test basic mbox parsing
6
prerequisite_command() {
7
type $2 2>&1 > /dev/null
9
echo "$1: $2 not found, test will be skipped"
14
prerequisite_command $0 head
15
prerequisite_command $0 grep
16
prerequisite_command $0 cut
18
DBACL_PATH="`pwd`/`basename $0 .sh`_`date +"%Y%m%dT%H%M%S"`"
23
(echo "From -" ; cat sample.spam-1 ; echo ; echo "From -" ; cat sample.spam-2) \
24
| $DBACL -l dummy -T email \
26
NUM=`head -3 "$DBACL_PATH/dummy" | grep '# hash_size' | cut -d ' ' -f 9`
b'\\ No newline at end of file'