inc'ing a message from a maildrop with two blank lines
between the header and body, the last 3 or 4 characters of
the last header would be copied into the body.
} else {
/* not a Unix style maildrop */
s->readpos -= s->bytes_read;
+ s->bytes_read = 0;
delimstr = mmdlm2;
s->msg_style = MS_MMDF;
}
Note that on input, a character had already been read
with Getc(). It will be unget by m_getfld () on return. */
s->readpos -= s->bytes_read - 1;
+ s->bytes_read = 1;
return 0;
}
24 12/18 foo@example.edu test'
rm -f "$MH_TEST_DIR/msgbox"
+# check mbox with two blank lines between header and body
+cat >>"$MH_TEST_DIR/msgbox" <<EOF
+From
+From: me@example.com
+
+
+test
+EOF
+
+run_test "inc -width 80 -file $MH_TEST_DIR/msgbox -truncate" \
+'Incorporating new mail into inbox...
+
+ 25+ 04/15*me@example.com <<test >>'
+rm -f "$MH_TEST_DIR/msgbox"
+
exit ${failed:-0}