]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/mbox_reader.t
eml: keep body if no headers are found
[public-inbox.git] / t / mbox_reader.t
index e5f57d7bcba3d177b6460cf1e7f1eee405d672aa..87e8f397662cd058aafc0075a23d4377e2c0abaa 100644 (file)
@@ -138,7 +138,11 @@ EOM
                PublicInbox::MboxReader->$m($fh, sub {
                        push @x, $_[0]->as_string
                });
-               is_deeply(\@x, [], "messages in invalid $m");
+               if ($m =~ /\Amboxcl/) {
+                       is_deeply(\@x, [], "messages in invalid $m");
+               } else {
+                       is_deeply(\@x, [ "\n$html" ], "body-only $m");
+               }
                is_deeply([grep(!/^W: leftover/, @w)], [],
                        "no extra warnings besides leftover ($m)");
        }