#!/bin/sh # # Test the behavior of post with multiple recipients and the use of Bcc: # set -e if test -z "${MH_OBJ_DIR}"; then srcdir=`dirname "$0"`/../.. MH_OBJ_DIR=`cd "$srcdir" && pwd`; export MH_OBJ_DIR fi . "${srcdir}/test/post/test-post-common.sh" # # Bcc test. # # It's worth pointing out here what's going on the SMTP protocol. # # If there are both sighted and unsighted addresses in the address list, # post calls verify_all_addresses() which results in ALL recipient # addresses being attempted, then the SMTP connection is reset, then # both the sighted and unsigned messages are sent (in different SMTP # transactions). Apparantly post has always done it this way. # cat > "${MH_TEST_DIR}/Mail/draft" < To: Somebody One , Somebody Two Subject: Test Bcc Bcc: Somebody Three , Somebody Four This is test of Bcc recipients. EOF cat > "${testname}.expected" < RCPT TO: RCPT TO: RCPT TO: RCPT TO: RSET MAIL FROM: RCPT TO: RCPT TO: DATA From: Mr Nobody To: Somebody One , Somebody Two Subject: Test Bcc Date: This is test of Bcc recipients. . RSET MAIL FROM: RCPT TO: RCPT TO: DATA From: Mr Nobody Date: Subject: Test Bcc BCC: ------- Blind-Carbon-Copy From: Mr Nobody To: Somebody One , Somebody Two Subject: Test Bcc Date: This is test of Bcc recipients. ------- End of Blind-Carbon-Copy . QUIT EOF test_post "${testname}.actual" "${testname}.expected" exit ${failed:-0}