]> diplodocus.org Git - nmh/blobdiff - test/rcv/test-rcvdist
A little tiny bit closer to working.
[nmh] / test / rcv / test-rcvdist
index 8dea84dd7e3936c2e916f9d310db31f1b04af5b7..5e34615eedd2dd6741eb21e48f651670e210f6db 100755 (executable)
@@ -75,13 +75,14 @@ test_rcvdist ()
 }
 
 # check with address
-
 cat > "$expected" <<EOF
 From: Test1 <test1@example.com>
 To: Some User <user@example.com>
 Date: Fri, 29 Sep 2006 00:00:00
+Message-Id: 1@test.nmh
 Subject: Testing message 1
-Resent-From: `${MH_LIB_DIR}/ap -format '%(localmbox)' 0`
+Resent-From: `${MH_LIB_DIR}/ap -format '%(localmbox)' 0 | \
+              sed 's/^<\(.*\)>$/\1/'`
 Resent-To: recipient@example.com
 Resent-Date:
 
@@ -95,6 +96,7 @@ cat > "$expected" <<EOF
 From: Test2 <test2@example.com>
 To: Some User <user@example.com>
 Date: Fri, 29 Sep 2006 00:00:00
+Message-Id: 2@test.nmh
 Subject: Testing message 2
 Resent-To: recipient@example.com
 Resent-From: Some User <user@example.com>