X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/c4c53777458bfcfd288d45b7708e52eb47c56405..bd7a5de6be16c5e5466264439ebdc157fcafab74:/test/inc/test-inc-scanout diff --git a/test/inc/test-inc-scanout b/test/inc/test-inc-scanout index 8d7a72d4..491a520f 100755 --- a/test/inc/test-inc-scanout +++ b/test/inc/test-inc-scanout @@ -201,9 +201,9 @@ run_test "scan -width 120 +inbox 11" \ # check header field name with ':' character than lands on m_getfld() buffer cat >"$MH_TEST_DIR/mess" < To: Some Other User @@ -349,6 +297,42 @@ run_test 'scan -width 80 -file '"$MH_TEST_DIR"'/mess' \ ' 1 01/16 No Such User FLDPLUS test' rm -f "$MH_TEST_DIR/mess" +# check inc of message with header field body with more than 511 characters +cat >"$expected" < +To: Some Other User +Subject: FLDPLUS test +Date: Wed, 16 Jan 2013 20:33:58 -0600 +EOF + +cat >"$MH_TEST_DIR/mess" < +To: Some Other User +Subject: FLDPLUS test +Date: Wed, 16 Jan 2013 20:33:58 -0600 + +EOF +inc -file "$MH_TEST_DIR/mess" >/dev/null +check "$expected" `mhpath last` || rmm last +rm -f "$MH_TEST_DIR/mess" + # check scan and inc of mbox with multiple messages echo y | packf -file "$MH_TEST_DIR/msgbox" run_test "scan -width 80 -file $MH_TEST_DIR/msgbox" \ @@ -381,5 +365,21 @@ run_test "inc -width 80 -file $MH_TEST_DIR/msgbox -truncate" \ 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" <>' +rm -f "$MH_TEST_DIR/msgbox" + exit ${failed:-0}