X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/04fa4f414a9d257104bcf6c20372e603865dfb42..f8d3c4d16b4a2cf0034dc1159c0c68dc78fd0921:/test/inc/test-inc-scanout diff --git a/test/inc/test-inc-scanout b/test/inc/test-inc-scanout index 9b4e0ba4..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" \ @@ -332,16 +368,17 @@ rm -f "$MH_TEST_DIR/msgbox" # check mbox with two blank lines between header and body cat >>"$MH_TEST_DIR/msgbox" <>' + 25+ 04/15 me@example.com <>' rm -f "$MH_TEST_DIR/msgbox"