diff options
Diffstat (limited to 'test/tests/inject/from_')
-rw-r--r-- | test/tests/inject/from_ | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/tests/inject/from_ b/test/tests/inject/from_ new file mode 100644 index 0000000..33e973b --- /dev/null +++ b/test/tests/inject/from_ @@ -0,0 +1,10 @@ +. functions + +injectfrom() { injectlines "${1}From somebody" "Subject: test1" "To: nowhere"; } + +for lead in '' '>' +do + echo "Checking that inject ignores a leading \"${lead}From \" line" + injectfrom "$lead" | egrep -qv '^>?From ' + injectfrom "$lead" | head -n 1 | grep -q '^Subject:' +done |