X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=test%2Ftests%2Fspost%2Ftest-group;h=c65e58c1678218189aaaa3c87443c77e6dd07758;hp=13c3bf146b390347cfdc85b6983f1c3b0f5b09ea;hb=66aa5fa11f02d91364b6954bda61cba1674770fe;hpb=319a70dc20f208d465037b108f5d7453d9be2691 diff --git a/test/tests/spost/test-group b/test/tests/spost/test-group index 13c3bf1..c65e58c 100644 --- a/test/tests/spost/test-group +++ b/test/tests/spost/test-group @@ -14,10 +14,12 @@ cd - >/dev/null export MMHP="$profile" + # Group Recipients cat >"$draft" <, Gill ; +To: Undisclosed recipients: Alice , + Gill ; Date: Sun, 25 Oct 2015 18:59:56 +0100 Subject: Group Recipients ---------------- @@ -35,3 +37,146 @@ foo alice@example.org gill@example.org ! + + + +cat >"$draft" <; +Date: Sun, 25 Oct 2015 18:59:56 +0100 +Subject: Group in CC +---------------- +foo +! + +runandcheck 'spost -debug "$draft"' < + +foo +----EOM---- +alice@example.org +gill@example.org +charly@example.net +! + + + +cat >"$draft" < +Date: Sun, 25 Oct 2015 18:59:56 +0100 +Subject: No semicolon at the end of the group +---------------- +foo +! + +runandcheck 'spost -debug "$draft"' < + +foo +----EOM---- +alice@example.org +gill@example.org +charly@example.net +! + + + +cat >"$draft" <, Gill ;, + charly@example.net +Date: Sun, 25 Oct 2015 18:59:56 +0100 +Subject: Group plus address with comma +---------------- +foo +! + +runandcheck 'spost -debug "$draft"' < + +foo +----EOM---- +alice@example.org +gill@example.org +charly@example.net +! + + + +cat >"$draft" <, Gill ; + charly@example.net +Date: Sun, 25 Oct 2015 18:59:56 +0100 +Subject: Group plus address, no comma +---------------- +foo +! + +runandcheck 'spost -debug "$draft"' < + +foo +----EOM---- +alice@example.org +gill@example.org +charly@example.net +! + + + +cat >"$draft" < + +foo +----EOM---- +alice +! + + + +cat >"$draft" <, Gill ; +Date: Sun, 25 Oct 2015 18:59:56 +0100 +Subject: Group in Dcc +---------------- +foo +! + +runandcheck 'spost -debug "$draft"' < + +foo +----EOM---- +alice@example.org +gill@example.org +charly +!