test Group Addresses in spost
authorPhilipp Takacs <philipp@bureaucracy.de>
Fri, 30 Oct 2015 20:41:31 +0000 (21:41 +0100)
committerPhilipp Takacs <philipp@bureaucracy.de>
Sat, 31 Oct 2015 23:08:20 +0000 (00:08 +0100)
test/tests/spost/test-group [new file with mode: 0644]

diff --git a/test/tests/spost/test-group b/test/tests/spost/test-group
new file mode 100644 (file)
index 0000000..13c3bf1
--- /dev/null
@@ -0,0 +1,37 @@
+# test spost: Group Addresses
+
+. "$MH_TEST_COMMON"
+
+
+draft="$MH_TEST_DIR/spost-$$.draft"
+
+profile="$MMH/profile-spost"
+cd "$MMH"
+cat "`mhparam profile`" - >"$profile" <<!
+default-from: Bob <bob@example.org>
+!
+cd - >/dev/null
+export MMHP="$profile"
+
+
+# Group Recipients
+
+cat >"$draft" <<!
+To: Undisclosed recipients: Alice <alice@example.org>, Gill <gill@example.org>;
+Date: Sun, 25 Oct 2015 18:59:56 +0100
+Subject: Group Recipients
+----------------
+foo
+!
+
+runandcheck 'spost -debug "$draft"' <<!
+To: Undisclosed recipients: ;
+Date: Sun, 25 Oct 2015 18:59:56 +0100
+Subject: Group Recipients
+From: Bob <bob@example.org>
+
+foo
+----EOM----
+alice@example.org
+gill@example.org
+!