about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiOverview.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/LeiOverview.pm')
-rw-r--r--lib/PublicInbox/LeiOverview.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/PublicInbox/LeiOverview.pm b/lib/PublicInbox/LeiOverview.pm
index dcc3088b..cab2b055 100644
--- a/lib/PublicInbox/LeiOverview.pm
+++ b/lib/PublicInbox/LeiOverview.pm
@@ -42,12 +42,10 @@ sub detect_fmt ($$) {
         my ($lei, $dst) = @_;
         if ($dst =~ m!\A([:/]+://)!) {
                 $lei->fail("$1 support not implemented, yet\n");
-        } elsif (!-e $dst) {
-                'maildir'; # the default
+        } elsif (!-e $dst || -d _) {
+                'maildir'; # the default TODO: MH?
         } elsif (-f _ || -p _) {
                 $lei->fail("unable to determine mbox family of $dst\n");
-        } elsif (-d _) { # TODO: MH?
-                'maildir';
         } else {
                 $lei->fail("unable to determine format of $dst\n");
         }