X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/f67e3671c985ad8095dc6fcc8be7ba6dd25cdf63..55deb9a8a3f78d67f5882d8e02bbaeab67c9078b:/test/inc/test-inc-scanout?ds=inline diff --git a/test/inc/test-inc-scanout b/test/inc/test-inc-scanout index ffe2c46d..140b54c0 100755 --- a/test/inc/test-inc-scanout +++ b/test/inc/test-inc-scanout @@ -297,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 +run_prog 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" \ @@ -329,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}