summaryrefslogtreecommitdiff
path: root/test/tests/inject/bad-headers
blob: a33dfeb3d577e6d41d1a04d28c995fe99576b216 (plain)
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"