]> diplodocus.org Git - nmh/blobdiff - test/post/test-post-fcc
Editing of man/post.man.
[nmh] / test / post / test-post-fcc
index b8a9419063aeaac2665840b6b2102c943e05eed2..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,15 +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 "" -e 's/^Date:.*/Date:/' ${msgname}
+sed -e 's/^Date:.*/Date:/' "${msgname}" > "${msgname}".nodate
 
-check "${testname}.msg.expected" ${msgname}
+check "${testname}.msg.expected" "${msgname}".nodate
 
 exit ${failed:-0}