]> Sergey Matveev's repositories - public-inbox.git/commitdiff
config: remove redundant inboxdir check
authorEric Wong <e@80x24.org>
Wed, 16 Oct 2019 09:58:08 +0000 (09:58 +0000)
committerEric Wong <e@80x24.org>
Wed, 16 Oct 2019 09:58:08 +0000 (09:58 +0000)
This was causing compatibility problems for old configs
when using public-inbox-nntpd.

lib/PublicInbox/Config.pm

index 2da202f99f6dd2e45729cb1a8dcca702d572c726..bdde3dbce81dc8ace4ac72411839a954b8e46652 100644 (file)
@@ -93,7 +93,6 @@ sub each_inbox {
        # may auto-vivify if config file is non-existent:
        foreach my $section (@{$self->{-section_order}}) {
                next if $section !~ m!\Apublicinbox\.([^/]+)\z!;
-               defined($self->{"publicinbox.$1.inboxdir"}) or next;
                my $ibx = lookup_name($self, $1) or next;
                $cb->($ibx);
        }
@@ -389,7 +388,7 @@ sub _fill {
                }
        }
 
-       return unless $ibx->{inboxdir};
+       return unless defined($ibx->{inboxdir});
        my $name = $pfx;
        $name =~ s/\Apublicinbox\.//;