File: bad-headers

package info (click to toggle)
nullmailer 1.00RC7-22
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,192 kB
  • ctags: 695
  • sloc: cpp: 4,375; sh: 519; makefile: 249; perl: 184; ansic: 10
file content (15 lines) | stat: -rw-r--r-- 335 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
. functions

injtest() { echo "$@" | not inject >/dev/null; }

echo "Checking that inject rejects leading continuation lines."
injtest " foo..."

echo "Checking that inject rejects malformed RFC headers."
injtest "foo : bar"
injtest ":foo bar"
injtest "foo"

echo "Checking that inject rejects bad addresses."
injtest "from: foo<bar"