-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rewritefrom test with multipart message
- Loading branch information
1 parent
c179dfd
commit 0a719d3
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |