diff options
author | Eric Wong <e@80x24.org> | 2016-05-14 03:02:42 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-05-14 03:02:42 +0000 |
commit | f850effe0baef8a37ad2eef3ef581b79539cc304 (patch) | |
tree | a48cd68e39795771c280b2cf8ecdf8e1595a0264 /lib/PublicInbox/Config.pm | |
parent | 9bfe40e7a4ace33fe3bd31e8589703fa5ef53d2a (diff) | |
download | public-inbox-f850effe0baef8a37ad2eef3ef581b79539cc304.tar.gz |
A public-inbox is NOT necessarily a mailing list, but it could serve as an input point for zero, one, or infinite mailing lists :D
Diffstat (limited to 'lib/PublicInbox/Config.pm')
-rw-r--r-- | lib/PublicInbox/Config.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm index f84a9550..331d25c5 100644 --- a/lib/PublicInbox/Config.pm +++ b/lib/PublicInbox/Config.pm @@ -45,18 +45,18 @@ sub lookup { my $v = $self->{"$pfx.$k"}; $rv{$k} = $v if defined $v; } - my $listname = $pfx; - $listname =~ s/\Apublicinbox\.//; - $rv{listname} = $listname; + my $inbox = $pfx; + $inbox =~ s/\Apublicinbox\.//; + $rv{inbox} = $inbox; my $v = $rv{address}; $rv{-primary_address} = ref($v) eq 'ARRAY' ? $v->[0] : $v; \%rv; } sub get { - my ($self, $listname, $key) = @_; + my ($self, $inbox, $key) = @_; - $self->{"publicinbox.$listname.$key"}; + $self->{"publicinbox.$inbox.$key"}; } sub config_dir { $ENV{PI_DIR} || expand_filename('~/.public-inbox') } |