]> diplodocus.org Git - nmh/blobdiff - test/post/test-post-fcc
Add test for -maxunencoded.
[nmh] / test / post / test-post-fcc
index 159823fad4addef4617fadda14db26cbab98c173..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
@@ -54,10 +58,8 @@ EOF
 
 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}