From: David Levine Date: Mon, 19 Mar 2012 01:59:06 +0000 (-0500) Subject: Merge branch 'master' of git.sv.nongnu.org:/srv/git/nmh X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=f5d8200783f132f760b2ecda6358cdc0180f677b;hp=e8ed3af7805a75b43204722862b07d0e7c82c0c5;p=mmh Merge branch 'master' of git.sv.nongnu.org:/srv/git/nmh --- diff --git a/Makefile.am b/Makefile.am index c781eb2..0727fea 100644 --- a/Makefile.am +++ b/Makefile.am @@ -50,6 +50,7 @@ TESTS = test/bad-input/test-header \ test/forw/test-forw-digest \ test/forw/test-forw-format \ test/inc/test-deb359167 test/inc/test-eom-align \ + test/inc/test-inc-scanout \ test/manpages/test-manpages test/mhbuild/test-forw \ test/mhlist/test-mhlist test/mhparam/test-mhparam \ test/mhpath/test-mhpath \ diff --git a/man/mhl.man b/man/mhl.man index cc5254d..5c0af06 100644 --- a/man/mhl.man +++ b/man/mhl.man @@ -325,7 +325,7 @@ the filter program specified by the .IR formatproc profile entry. This filter program is expected to read data on standard input and output data on standard output. Currently the \*(lqformat\*(rq -flag is only supported for the \(*lqbody\*(rq component. The component +flag is only supported for the \*(lqbody\*(rq component. The component name will be prefixed to the output .IR after the filter has been run. The expected use of this is to filter a message diff --git a/test/inc/test-inc-scanout b/test/inc/test-inc-scanout new file mode 100755 index 0000000..75be7dc --- /dev/null +++ b/test/inc/test-inc-scanout @@ -0,0 +1,195 @@ +#!/bin/sh +# +# Check to see if the scan output is correct if we have a message +# right on the stdio buffer boundary +# + +set -e + +if test -z "${MH_OBJ_DIR}"; then + srcdir=`dirname "$0"`/../.. + MH_OBJ_DIR=`cd "$srcdir" && pwd`; export MH_OBJ_DIR +fi + +. "$MH_OBJ_DIR/test/common.sh" + +setup_test + +cat > "${MH_TEST_DIR}/test.mbox" < +To: Another Nobody +Date: Thu, 1 Mar 2012 01:02:03 -0500 +Subject: Who is on first? + +Abbott: Every dollar of it. And why not, the man's entitled to it. +Costello: Who is? +Abbott: Yes. +Costello: So who gets it? +Abbott: Why shouldn't he? Sometimes his wife comes down and collects it. +Costello: Who's wife? +Abbott: Yes. After all, the man earns it. +Costello: Who does? +Abbott: Absolutely. +Costello: Well, all I'm trying to find out is what's the guy's name on first base? +Abbott: Oh, no, no. What is on second base. +Costello: I'm not asking you who's on second. +Abbott: Who's on first! +EOF + +cat > "${MH_TEST_DIR}/test.mbox.2" < +To: Another Nobody +Date: Thu, 1 Mar 2012 01:02:03 -0500 +Subject: Who is on first? + +Abbott: Every dollar of it. And why not, the man's entitled to it. +Costello: Who is? +Abbott: Yes. +Costello: So who gets it? +Abbott: Why shouldn't he? Sometimes his wife comes down and collects it. +Costello: Who's wife? +Abbott: Yes. After all, the man earns it. +Costello: Who does? +Abbott: Absolutely. +Costello: Well, all I'm trying to find out is what's the guy's name on first base? +Abbott: Oh, no, no. What is on second base. +Costello: I'm not asking you who's on second. +Abbott: Who's on first! +EOF + +run_test "inc -file ${MH_TEST_DIR}/test.mbox -width 120 -truncate" \ + "Incorporating new mail into inbox... + + 11+ 03/01 Mr Nobody Who is on first?<