1# test spost: bcc and dcc headers 2 3. "$MH_TEST_COMMON" 4 5 6draft="$MH_TEST_DIR/spost-$$.draft" 7 8profile="$MMH/profile-spost" 9cd "$MMH" 10cat "`mhparam profile`" - >"$profile" <<! 11default-from: Bob <bob@example.org> 12! 13cd - >/dev/null 14export MMHP="$profile" 15 16 17# to + cc headers 18 19cat >"$draft" <<! 20To: alice, gill 21Cc: jack, charly 22Date: Sun, 25 Oct 2015 18:59:56 +0100 23Subject: to and cc 24---------------- 25foo 26! 27 28runandcheck 'spost -debug "$draft"' <<! 29To: alice, gill 30Cc: jack, charly 31Date: Sun, 25 Oct 2015 18:59:56 +0100 32Subject: to and cc 33From: Bob <bob@example.org> 34 35foo 36----EOM---- 37jack 38charly 39alice 40gill 41! 42 43 44 45# to + bcc headers 46 47cat >"$draft" <<! 48To: alice 49Bcc: john, paul, george, ringo 50Date: Sun, 25 Oct 2015 18:59:56 +0100 51Subject: to and bcc 52---------------- 53foo 54! 55 56runandcheck 'spost -debug "$draft"' <<! 57To: alice 58Date: Sun, 25 Oct 2015 18:59:56 +0100 59Subject: to and bcc 60From: Bob <bob@example.org> 61 62foo 63----EOM---- 64alice 65! 66 67 68 69 70 71# only bcc headers 72 73cat >"$draft" <<! 74Bcc: john, paul, george, ringo 75Date: Sun, 25 Oct 2015 18:59:56 +0100 76Subject: only bcc 77---------------- 78foo 79! 80 81runandcheck 'spost -debug "$draft"' <<! 82Date: Sun, 25 Oct 2015 18:59:56 +0100 83Subject: only bcc 84From: Bob <bob@example.org> 85Bcc: undisclosed-recipients:; 86 87foo 88----EOM---- 89! 90 91 92 93 94# to + dcc headers 95 96cat >"$draft" <<! 97To: alice 98Dcc: john, paul, george, ringo 99Date: Sun, 25 Oct 2015 18:59:56 +0100 100Subject: to and dcc 101---------------- 102foo 103! 104 105runandcheck 'spost -debug "$draft"' <<! 106To: alice 107Date: Sun, 25 Oct 2015 18:59:56 +0100 108Subject: to and dcc 109From: Bob <bob@example.org> 110 111foo 112----EOM---- 113john 114paul 115george 116ringo 117alice 118! 119 120 121 122# only dcc headers 123 124cat >"$draft" <<! 125Dcc: john, paul, george, ringo 126Date: Sun, 25 Oct 2015 18:59:56 +0100 127Subject: only dcc 128---------------- 129foo 130! 131 132runandcheck 'spost -debug "$draft"' <<! 133Date: Sun, 25 Oct 2015 18:59:56 +0100 134Subject: only dcc 135From: Bob <bob@example.org> 136Bcc: undisclosed-recipients:; 137 138foo 139----EOM---- 140john 141paul 142george 143ringo 144! 145 146