From 39b0d6244fe3906648ce40336a2c6e8a7d9dd783 Mon Sep 17 00:00:00 2001 From: David Levine Date: Sat, 21 Jul 2012 12:19:18 -0500 Subject: [PATCH] Added check to notpost for presence of Resent-From:. --- test/rcv/test-rcvdist | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/rcv/test-rcvdist b/test/rcv/test-rcvdist index 1f22754..d13a202 100755 --- a/test/rcv/test-rcvdist +++ b/test/rcv/test-rcvdist @@ -53,7 +53,14 @@ run_test "$rcvdist" \ # check with address # Replace post: cat >"$MH_TEST_DIR/Mail/notpost" </dev/null; then + sed 's/^Resent-From:.*/Resent-From:/' "\$2" >"$actual" +else + printf 'post: message has no Resent-From: header\n' + printf 'post: See default components files for examples\n' + printf 'post: re-format message and try again\n' + exit 1 +fi EOF chmod u+x "$MH_TEST_DIR/Mail/notpost" sed 's/postproc:.*/#:/' "$MH" > "${MH}-new" @@ -67,6 +74,7 @@ From: Test1 To: Some User Date: Fri, 29 Sep 2006 00:00:00 Subject: Testing message 1 +Resent-From: Resent-To: recipient@example.com This is message number 1 @@ -82,7 +90,7 @@ To: Some User Date: Fri, 29 Sep 2006 00:00:00 Subject: Testing message 1 Resent-To: recipient@example.com -Resent-From: Some User +Resent-From: This is message number 1 EOF -- 1.7.10.4