diff options
author | Leah Neukirchen <leah@vuxu.org> | 2021-05-09 15:58:16 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2021-05-09 22:00:32 +0200 |
commit | 8ba44643e431dc41bd475d977d2ec26f028b5b3f (patch) | |
tree | c3beae274660a9dd91d396eb53f710346a9e8e42 /t | |
parent | 669af4ffcae6d6515f8de7a53c407ca26d1263c6 (diff) | |
download | mblaze-8ba44643e431dc41bd475d977d2ec26f028b5b3f.tar.gz mblaze-8ba44643e431dc41bd475d977d2ec26f028b5b3f.tar.xz mblaze-8ba44643e431dc41bd475d977d2ec26f028b5b3f.zip |
t/1900-mdeliver.t: add test for malformed mboxes
Diffstat (limited to 't')
-rwxr-xr-x | t/1900-mdeliver.t | 16 |
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' |