#!/bin/sh +x # Note: When run via "make check", test output files are automatically deleted. # When run from the command line, output files are left in directory # spam.header.place.YYYYMMDD. This is useful when something is different. NODB=1 . ${srcdir=.}/t.frame map_rc() { ( set +e eval "$@" a=$? [ $a -eq 0 ] && exit 0 [ $a -eq 1 ] && exit 0 [ $a -eq 2 ] && exit 0 exit $a ) } CFG="$TMPDIR/test.cfg" MSG="$TMPDIR/test.msg" REF="$TMPDIR/test.ref" OUT="$TMPDIR/test.out" X_BOGOSITY="X-Bogosity: Unsure, tests=bogofilter, spamicity=0.520000" cat >> "$CFG" <> "$MSG" <> "$REF.wo" <> "$REF.wi" <