projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix autoconf check for mailspool world write permission
[mmh]
/
test
/
tests
/
bad-input
/
test-header
diff --git
a/test/tests/bad-input/test-header
b/test/tests/bad-input/test-header
index
947dc30
..
8a3251e
100644
(file)
--- a/
test/tests/bad-input/test-header
+++ b/
test/tests/bad-input/test-header
@@
-18,7
+18,7
@@
expected=$MH_TEST_DIR/$$.expected
actual=$MH_TEST_DIR/$$.actual
# Write message with bogus header field (missing blank line, really).
actual=$MH_TEST_DIR/$$.actual
# Write message with bogus header field (missing blank line, really).
-msgfile=$(mhpath new)
+msgfile=$(mhpath b)
msgnum=$(basename $msgfile)
cat > $msgfile <<EOF
Date: Sun, 18 Dec 2005 00:52:39 +0100
msgnum=$(basename $msgfile)
cat > $msgfile <<EOF
Date: Sun, 18 Dec 2005 00:52:39 +0100
@@
-32,42
+32,26
@@
EOF
# check scan
cat > $expected <<EOF
# check scan
cat > $expected <<EOF
- 11 12/18 foo@example.edu test<<This is a multi-part message in MIME forma
+ 11 2005-12-18 00:52 foo@example.edu test
EOF
scan $msgnum > $actual 2>&1
check
EOF
scan $msgnum > $actual 2>&1
check
-# check show (mhl)
-cat > $expected <<EOF
-(Message inbox:11)
-
-Date: Sun, 18 Dec 2005 00:52:39 +0100
-To: bar@example.edu
-From: foo@example.edu
-Subject: test
-
-
-This is a multi-part message in MIME format.
-
-I am a stupid spammer.
-EOF
-show $msgnum > $actual 2>&1
-check
-
-# check mhshow
+# check show
cat > $expected <<EOF
Date: Sun, 18 Dec 2005 00:52:39 +0100
cat > $expected <<EOF
Date: Sun, 18 Dec 2005 00:52:39 +0100
-To: bar@example.edu
From: foo@example.edu
From: foo@example.edu
+To: bar@example.edu
Subject: test
Subject: test
-
part text/plain 70
This is a multi-part message in MIME format.
I am a stupid spammer.
EOF
part text/plain 70
This is a multi-part message in MIME format.
I am a stupid spammer.
EOF
-mhshow -nopause $msgnum > $actual 2>&1
+show $msgnum > $actual 2>&1
check
check
+
+exit $failed