From: David Levine Date: Sat, 21 Jul 2012 17:42:14 +0000 (-0500) Subject: Here's a better test of Resent-From: in test-rcvdist: use the user's X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=7946a8c713bd43a52229345ad0289aaa461acfb3;p=mmh Here's a better test of Resent-From: in test-rcvdist: use the user's actual localmbox. --- diff --git a/test/rcv/test-rcvdist b/test/rcv/test-rcvdist index d13a202..afb90ac 100755 --- a/test/rcv/test-rcvdist +++ b/test/rcv/test-rcvdist @@ -54,7 +54,7 @@ run_test "$rcvdist" \ # Replace post: cat >"$MH_TEST_DIR/Mail/notpost" </dev/null; then - sed 's/^Resent-From:.*/Resent-From:/' "\$2" >"$actual" + cp "\$2" "$actual" else printf 'post: message has no Resent-From: header\n' printf 'post: See default components files for examples\n' @@ -74,7 +74,7 @@ From: Test1 To: Some User Date: Fri, 29 Sep 2006 00:00:00 Subject: Testing message 1 -Resent-From: +Resent-From: `${MH_LIB_DIR}/ap -format '%(localmbox)' 0` Resent-To: recipient@example.com This is message number 1 @@ -90,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: +Resent-From: Some User This is message number 1 EOF