Don't test with sendmail because it would really send the mail. If
[mmh] / test / post / test-post-common.sh
index e0eaa4a..7bc67e3 100755 (executable)
@@ -37,9 +37,8 @@ test_post ()
     # compare it against our "correct" output.
     #
 
-    sed -i.bak -e 's/^Date:.*/Date:/' "$1"
+    sed -e 's/^Date:.*/Date:/' "$1" > "$1".nodate
+    rm -f "$1"
 
-    rm -f "${1}.bak"
-
-    check "$1" "$2"
+    check "$1".nodate "$2"
 }