From 8ba44643e431dc41bd475d977d2ec26f028b5b3f Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sun, 9 May 2021 15:58:16 +0200 Subject: t/1900-mdeliver.t: add test for malformed mboxes --- t/1900-mdeliver.t | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 <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' -- cgit 1.4.1