about summary refs log tree commit diff
path: root/t/1000-mmime.t
diff options
context:
space:
mode:
Diffstat (limited to 't/1000-mmime.t')
-rwxr-xr-xt/1000-mmime.t11
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'