Skip to content

Commit

Permalink
Add rewritefrom test with multipart message
Browse files Browse the repository at this point in the history
  • Loading branch information
keithbare2 committed Mar 5, 2023
1 parent c179dfd commit 0a719d3
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions tests/551-ezmlm-send-rewritefrom
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,34 @@ grephdr Reply-To: "<${LIST}@${HOST}>"
singlehdr Cc:
grephdr Cc: '"Carbon Copy 15" <[email protected]>, <[email protected]>, My Test 15 <[email protected]>'

cat >"$TMP" <<EOF
From: [email protected]
To: ${LIST}@${HOST}
Cc: [email protected]
Subject: multipart/alternative MIME message
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="0000000062ea6ef9772a44f3a30a"

--0000000062ea6ef9772a44f3a30a
Content-Type: text/plain; charset="US-ASCII"

Hello, world!

--0000000062ea6ef9772a44f3a30a
Content-Type: text/html; charset="US-ASCII"

Hello, world!<br/>
--0000000062ea6ef9772a44f3a30a--
EOF
${EZBIN}/ezmlm-send "$DIR" <"$TMP" >"$ERR" 2>&1 || \
fatal "failed to produce post"
unfoldhdrs
grephdr From: "\"[email protected]\" via ${LIST} <${LIST}@${HOST}>$"
singlehdr Reply-To:
grephdr Reply-To: "<${LIST}@${HOST}>"
singlehdr Cc:
grephdr Cc: '[email protected], [email protected]'

rm -f "$DIR"/rewritefrom "$DIR"/replytolist

echo OK

0 comments on commit 0a719d3

Please sign in to comment.