about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2021-05-09 15:58:16 +0200
committerLeah Neukirchen <leah@vuxu.org>2021-05-09 22:00:32 +0200
commit8ba44643e431dc41bd475d977d2ec26f028b5b3f (patch)
treec3beae274660a9dd91d396eb53f710346a9e8e42
parent669af4ffcae6d6515f8de7a53c407ca26d1263c6 (diff)
downloadmblaze-8ba44643e431dc41bd475d977d2ec26f028b5b3f.tar.gz
mblaze-8ba44643e431dc41bd475d977d2ec26f028b5b3f.tar.xz
mblaze-8ba44643e431dc41bd475d977d2ec26f028b5b3f.zip
t/1900-mdeliver.t: add test for malformed mboxes
-rwxr-xr-xt/1900-mdeliver.t16
1 files changed, 16 insertions, 0 deletions
diff --git a/t/1900-mdeliver.t b/t/1900-mdeliver.t
index 179cbbe..18a7bdb 100755
--- a/t/1900-mdeliver.t
+++ b/t/1900-mdeliver.t
@@ -67,3 +67,19 @@ rm -f ./inbox/new/*
 mdeliver inbox/ <./tmp.4
 check 'message 4 is delivered verbatim via stdin' 'cmp ./tmp.4 ./inbox/new/*:2,'
 rm -f ./inbox/new/*
+
+
+cat <<EOF >tmp.mbox
+From nobody Thu Jan  1 00:59:59 1970
+Subject: message 1
+
+This is message 1.
+From nobody Thu Jan  1 00:59:59 1970
+Subject: message 2
+
+This is message 2.
+
+EOF
+
+mdeliver -M inbox/ <./tmp.mbox
+check 'mdeliver -M is tolerant with missing empty lines' 'ls inbox/new | wc -l | grep 2'