X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=test%2Ftests%2Fscan%2Ftest-mh-format;fp=test%2Ftests%2Fscan%2Ftest-mh-format;h=2771934760613d68a7931e1ebd25bc4f8ce1d118;hb=72d6c7764974246384bb5daa7cc8b4f0a516621b;hp=0000000000000000000000000000000000000000;hpb=e2550f03c9679b6fcc5240f9cda48bd5a9951e3a;p=mmh diff --git a/test/tests/scan/test-mh-format b/test/tests/scan/test-mh-format new file mode 100644 index 0000000..2771934 --- /dev/null +++ b/test/tests/scan/test-mh-format @@ -0,0 +1,44 @@ +#!/bin/sh +###################################################### +# +# Test trailing space handling in format files +# +###################################################### + +. "$MH_TEST_COMMON" + + +msgfile=`mhpath b +inbox` +cat >"$msgfile" < +Date: Wed, 20 Apr 2016 07:38:12 +0200 +Message-Id: <83C58147-7B2B-4B7F-9502-17C1EB9526BC@example.org> +To: Alice +Content-Type: text/plain; charset=utf-8 + +The subject line has three trailing spaces, inside the RFC 2047 +encoding. They get removed if we first (decode) and afterwards +(trim) on diplay. +! + + +# output has no trailing spaces +runandcheck "scan -width 80 +inbox l" < +To: Alice +Subject: 3 trailing spaces + +part text/plain 145 +The subject line has three trailing spaces, inside the RFC 2047 +encoding. They get removed if we first (decode) and afterwards +(trim) on diplay. +!