diff options
author | Leah Neukirchen <leah@vuxu.org> | 2021-08-07 19:33:08 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2021-08-07 19:33:08 +0200 |
commit | 4ccf2f08c1aa8b15f31ac469edebe6c4710d74f1 (patch) | |
tree | 76dcdb6a8245393ab4480e076ddf1ad006cbe124 /t | |
parent | 65d43e3cea10e40f65e9cd1b49ef1ddaed514a14 (diff) | |
download | mblaze-4ccf2f08c1aa8b15f31ac469edebe6c4710d74f1.tar.gz mblaze-4ccf2f08c1aa8b15f31ac469edebe6c4710d74f1.tar.xz mblaze-4ccf2f08c1aa8b15f31ac469edebe6c4710d74f1.zip |
mmime: ensure no empty parts are generated after an include.
Reported by lhynes.
Diffstat (limited to 't')
-rwxr-xr-x | t/1000-mmime.t | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/t/1000-mmime.t b/t/1000-mmime.t index 0408d32..6d4c40c 100755 --- a/t/1000-mmime.t +++ b/t/1000-mmime.t @@ -1,7 +1,8 @@ #!/bin/sh -e cd ${0%/*} . ./lib.sh -plan 16 + +plan 17 cat <<EOF >tmp References: <aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa@a> <bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb@b> <ccccccccccccccccccccccccccccccc@c> @@ -115,3 +116,11 @@ Body. EOF check 'non-encoded quoted-strings are kept correctly' 'mmime <tmp2 | grep \"@' + +cat <<EOF >tmp2 +Subject: inclusion without further content + +#message/rfc822#inline $PWD/tmp +EOF + +check 'no empty parts are generated after inclusion lines' '! mmime <tmp2 | mshow -t - | grep -q size=0' |