test if spost catch bad addresses
authorPhilipp Takacs <philipp@bureaucracy.de>
Sat, 31 Oct 2015 15:39:40 +0000 (16:39 +0100)
committerPhilipp Takacs <philipp@bureaucracy.de>
Sat, 31 Oct 2015 22:56:01 +0000 (23:56 +0100)
test/tests/spost/test-bad-address [new file with mode: 0644]

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
+!