projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
39b0d62
)
Here's a better test of Resent-From: in test-rcvdist: use the user's
author
David Levine
<levinedl@acm.org>
Sat, 21 Jul 2012 17:42:14 +0000
(12:42 -0500)
committer
David Levine
<levinedl@acm.org>
Sat, 21 Jul 2012 17:42:14 +0000
(12:42 -0500)
actual localmbox.
test/rcv/test-rcvdist
patch
|
blob
|
history
diff --git
a/test/rcv/test-rcvdist
b/test/rcv/test-rcvdist
index
d13a202
..
afb90ac
100755
(executable)
--- 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" <<EOF
if grep '^Resent-From: ' "\$2" >/dev/null; then
# Replace post:
cat >"$MH_TEST_DIR/Mail/notpost" <<EOF
if grep '^Resent-From: ' "\$2" >/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'
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 <test1@example.com>
To: Some User <user@example.com>
Date: Fri, 29 Sep 2006 00:00:00
Subject: Testing message 1
To: Some User <user@example.com>
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
Resent-To: recipient@example.com
This is message number 1
@@
-90,7
+90,7
@@
To: Some User <user@example.com>
Date: Fri, 29 Sep 2006 00:00:00
Subject: Testing message 1
Resent-To: recipient@example.com
Date: Fri, 29 Sep 2006 00:00:00
Subject: Testing message 1
Resent-To: recipient@example.com
-Resent-From:
+Resent-From: Some User <user@example.com>
This is message number 1
EOF
This is message number 1
EOF