From: David Levine Date: Sat, 21 Jul 2012 17:19:18 +0000 (-0500) Subject: Added check to notpost for presence of Resent-From:. X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=39b0d6244fe3906648ce40336a2c6e8a7d9dd783;p=mmh Added check to notpost for presence of Resent-From:. --- 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