From 7946a8c713bd43a52229345ad0289aaa461acfb3 Mon Sep 17 00:00:00 2001 From: David Levine Date: Sat, 21 Jul 2012 12:42:14 -0500 Subject: [PATCH] Here's a better test of Resent-From: in test-rcvdist: use the user's actual localmbox. --- test/rcv/test-rcvdist | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 1.7.10.4