]> diplodocus.org Git - nmh/blobdiff - test/post/test-post-fcc
Replace getcpy() with mh_xstrdup().
[nmh] / test / post / test-post-fcc
index 946969c9f9663327568f392e6e65805d0564797a..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,6 +49,8 @@ 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
@@ -55,8 +59,7 @@ EOF
 msgname=`mhpath +inbox 11`
 
 sed -e 's/^Date:.*/Date:/' "${msgname}" > "${msgname}".nodate
-mv "${msgname}".nodate "${msgname}"
 
-check "${testname}.msg.expected" "${msgname}"
+check "${testname}.msg.expected" "${msgname}".nodate
 
 exit ${failed:-0}