test if spost catch bad addresses
[mmh] / test / tests / spost / test-bad-address
diff --git a/test/tests/spost/test-bad-address b/test/tests/spost/test-bad-address
new file mode 100644 (file)
index 0000000..ff39d1b
--- /dev/null
@@ -0,0 +1,20 @@
+# test spost: bcc and dcc headers
+
+. "$MH_TEST_COMMON"
+
+
+draft="$MH_TEST_DIR/spost-$$.draft"
+
+cat >"$draft" <<!
+To: al ice
+Date: Sun, 25 Oct 2015 18:59:56 +0100
+Subject: not parseable address
+----------------
+!
+
+runandcheck 'spost -debug "$draft" 2>&1 ; echo $?' <<!
+spost: bad address 'al ice' - no mailbox in address, only a phrase (al ice), continuing...
+spost: can't parse address: al ice
+
+65
+!