]> diplodocus.org Git - nmh/blobdiff - test/post/test-post-fcc
Replace getcpy() with mh_xstrdup().
[nmh] / test / post / test-post-fcc
index 5ade9723a31d0c5efa88aeaaa9bfab4c51c1f28f..052e3dbf8dc5e8797c9e85767651a40c3731bf68 100755 (executable)
@@ -34,6 +34,8 @@ DATA
 From: Mr Nobody <nobody@example.com>
 To: Somebody Else <somebody@example.com>
 Subject: Fcc test
+MIME-Version: 1.0
+Content-Type: text/plain; charset="us-ascii"
 Date:
 
 This is a fcc test
@@ -47,17 +49,17 @@ cat > "${testname}.msg.expected" <<EOF
 From: Mr Nobody <nobody@example.com>
 To: Somebody Else <somebody@example.com>
 Subject: Fcc test
+MIME-Version: 1.0
+Content-Type: text/plain; charset="us-ascii"
 Date:
 
 This is a fcc test
 EOF
 
-msgname=$(mhpath +inbox 11)
+msgname=`mhpath +inbox 11`
 
-sed -i.bak -e 's/^Date:.*/Date:/' "${msgname}"
+sed -e 's/^Date:.*/Date:/' "${msgname}" > "${msgname}".nodate
 
-rm -f "${msgname}.bak"
-
-check "${testname}.msg.expected" "${msgname}"
+check "${testname}.msg.expected" "${msgname}".nodate
 
 exit ${failed:-0}