EOF
}
-# Munge the Content-Id from the draft after mhbuild, so we have a reliable
-# value to check.
-mungedraft() {
- sed 's/\(Content-ID:\) <[^>][^>]*>/\1 <TESTID>/' $draft > $actual
-}
-
draft="$MH_TEST_DIR/$$.draft"
draftorig="$MH_TEST_DIR/,$$.draft.orig"
expected="$MH_TEST_DIR/$$.expected"
Subject:
MIME-Version: 1.0
Content-Type: multipart/digest; boundary="----- =_aaaaaaaaaa0"
-Content-ID: <TESTID>
Content-Description: forwarded messages
------- =_aaaaaaaaaa0
EOF
mkdraft
mhbuild $draft
-mungedraft
-check $expected $actual
-test ${failed:-0} -eq 0 && rm "$draft" "$draftorig"
+check $expected $draft
+test ${failed:-0} -eq 0 && rm "$draftorig"
# check mhbuild -rfc934
cat > $expected <<EOF
Subject:
MIME-Version: 1.0
Content-Type: multipart/digest; boundary="----- =_aaaaaaaaaa0"
-Content-ID: <TESTID>
Content-Description: forwarded messages
EOF
mkdraft
mhbuild -rfc934 $draft
-mungedraft
-check $expected $actual
-test ${failed:-0} -eq 0 && rm "$draft" "$draftorig"
+check $expected $draft
+test ${failed:-0} -eq 0 && rm "$draftorig"
exit $failed