File: t15-headermarker

package info (click to toggle)
qsf 1.2.7-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, lenny, squeeze, wheezy
  • size: 1,372 kB
  • ctags: 598
  • sloc: ansic: 9,981; sh: 816; awk: 17; makefile: 6
file content (15 lines) | stat: -rw-r--r-- 584 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
#
# TEST: Spam header marker:             

rm -f $TESTDB
./mboxsplit 1 < .test-spam | $PROG -d $BACKEND:$TESTDB -m -w 2
ISSPAM=0
./mboxsplit 1 < .test-spam | $PROG -d $BACKEND:$TESTDB | grep 'X-Spam: YES' >/dev/null && ISSPAM=1
test $ISSPAM -eq 1
ISSPAM=0
./mboxsplit 1 < .test-spam | $PROG -d $BACKEND:$TESTDB -H 'LONGER TEST STRING' | grep 'X-Spam: LONGER TEST STRING' >/dev/null && ISSPAM=1
test $ISSPAM -eq 1
BADHEADER=0
./mboxsplit 1 < .test-spam | $PROG -d $BACKEND:$TESTDB -H 'LONGER TEST STRING' | grep 'X-Spam: YES' >/dev/null && BADHEADER=1
test $BADHEADER -eq 0