We require the header and body to be separated by an empty line.
We require header lines to end with a newline. m_getfld2() does
not try to guess as much as the old m_getfld() did.
# check show
runandcheck "show $msgnum" <<!
-Date: Sun, 18 Dec 2005 00:52:39 +0100
-From: foo@example.edu
-To: bar@example.edu
-Subject: test
-
-part text/plain 70
-
-This is a multi-part message in MIME format.
-
-I am a stupid spammer.
+show: message format error in component #5
!
0
!
+# check with folded header
+cat >>"$MMHP" <<!
+Alternate-Mailboxes: alice@example.org,
+ bob@example.net,
+ charly@example.comp
+!
+runandcheck 'mhparam alternate-mailboxes' <<!
+alice@example.org, bob@example.net, charly@example.comp
+!
+
+
# check with text file that does not end with newline
+# in mmh this is invalid
printf 'Editor: emacs' >>"$MMHP"
runandcheck 'mhparam -nocomponent editor' <<!
-emacs
+mhparam: `cat test-temp-dir`/.mmh/profile2 is poorly formatted
!