Debian Codegraph @

src/tests/t.passthrough-truncation

raw
1 #! /bin/sh
2
3 . ${srcdir:=.}/t.frame
4
5 # t.passthrough-truncation
6 #
7 # test for correct passthrough of misdeclared MIME parts
8 # especially binary stuff parsed as HTML
9 # test case provided by Julius Plenz, July 2014.
10
11 gzip -c -d <"$srcdir/inputs/t.passthrough-truncation-in.gz" >"$TMPDIR/input"
12 $BOGOFILTER -e -p -C -I "$TMPDIR/input" >"${TMPDIR}/intermediate"
13 $GREP -v "^X-Bogosity: Unsure," <"${TMPDIR}/intermediate" >"$TMPDIR/output"
14
15 if [ $verbose -eq 0 ]; then
16 cmp "$TMPDIR/input" "$TMPDIR/output"
17 else
18 set +e
19 diff $DIFF_BRIEF "$TMPDIR/input" "$TMPDIR/output"
20 fi