From 0a719d34727eff3ee78f43b66a952b260e4047f8 Mon Sep 17 00:00:00 2001 From: Keith Bare <105995606+keithbare2@users.noreply.github.com> Date: Sat, 4 Mar 2023 21:44:11 -0500 Subject: [PATCH] Add rewritefrom test with multipart message --- tests/551-ezmlm-send-rewritefrom | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/tests/551-ezmlm-send-rewritefrom b/tests/551-ezmlm-send-rewritefrom index 9bd061a..80d3d20 100644 --- a/tests/551-ezmlm-send-rewritefrom +++ b/tests/551-ezmlm-send-rewritefrom @@ -110,6 +110,34 @@ grephdr Reply-To: "<${LIST}@${HOST}>" singlehdr Cc: grephdr Cc: '"Carbon Copy 15" , , My Test 15 ' +cat >"$TMP" < +--0000000062ea6ef9772a44f3a30a-- +EOF +${EZBIN}/ezmlm-send "$DIR" <"$TMP" >"$ERR" 2>&1 || \ + fatal "failed to produce post" +unfoldhdrs +grephdr From: "\"test16@example.org\" via ${LIST} <${LIST}@${HOST}>$" +singlehdr Reply-To: +grephdr Reply-To: "<${LIST}@${HOST}>" +singlehdr Cc: +grephdr Cc: 'cc16@example.org, test16@example.org' + rm -f "$DIR"/rewritefrom "$DIR"/replytolist echo OK