X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/a7e06a97d07dda42ab961c9208711bf4c462f0fc..f383303ba2b9a77dc71ecce10e2fe96d9ae3b397:/test/inc/test-inc-scanout diff --git a/test/inc/test-inc-scanout b/test/inc/test-inc-scanout index adc7867a..68a53420 100755 --- a/test/inc/test-inc-scanout +++ b/test/inc/test-inc-scanout @@ -200,8 +200,123 @@ run_test "scan -width 120 +inbox 11" \ " 11+ 03/01 Mr Nobody Who is on first?<"$MH_TEST_DIR/mess" < +To: Some Other User +Subject: all that and nothing to say? +Date: Thu, 10 Jan 2013 19:54:01 -0500 + +EOF + +run_test 'scan -width 60 -file '"$MH_TEST_DIR/mess" \ ' 1 01/10 No Such User all that and nothing to say?' +rm -f "$MH_TEST_DIR/mess" # check m_getfld() handling of fields with trailing whitespace # Even though header field names aren't supposed to have spaces (RFC @@ -214,5 +329,25 @@ Subject: test EOF run_test 'scan last' ' 12 12/18 foo@example.edu test' +# check header field body with more than 511 characters +cat >"$MH_TEST_DIR/mess" < +To: Some Other User +Subject: FLDPLUS test +Date: Wed, 16 Jan 2013 20:33:58 -0600 + +EOF + +run_test 'scan -width 80 -file '"$MH_TEST_DIR"'/mess' \ + ' 1 01/16 No Such User FLDPLUS test' +rm -f "$MH_TEST_DIR/mess" + exit ${failed:-0}