about summary refs log tree commit homepage
path: root/lib/PublicInbox/Watch.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-09-09 05:25:02 +0000
committerEric Wong <e@80x24.org>2021-09-09 05:42:57 +0000
commit917eacadf8bf6eb9a24ca34bc6590c6e77e15dd2 (patch)
tree1bce8182c4384998c26d28f56a1841116775cc8a /lib/PublicInbox/Watch.pm
parent8df4e5f1c7020a500e977f3224a6b2fece2c5302 (diff)
downloadpublic-inbox-917eacadf8bf6eb9a24ca34bc6590c6e77e15dd2.tar.gz
net_reader: imap_opt => cfg_opt
Since this our internal IMAP options are keyed by URI section,
there's no need to have separate hashes for NNTP and IMAP
options since they URI already distinguishes them.

This will make future changes to support POP3 and JMAP and
arg caching with lei/store easier.
Diffstat (limited to 'lib/PublicInbox/Watch.pm')
-rw-r--r--lib/PublicInbox/Watch.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Watch.pm b/lib/PublicInbox/Watch.pm
index 96faa9f8..20ce0616 100644
--- a/lib/PublicInbox/Watch.pm
+++ b/lib/PublicInbox/Watch.pm
@@ -530,9 +530,9 @@ sub watch_imap_init ($$) {
         for my $uri (@{$self->{imap_order}}) {
                 my $sec = uri_section($uri);
                 my $mic = $mics->{$sec};
-                my $intvl = $self->{imap_opt}->{$sec}->{pollInterval};
+                my $intvl = $self->{cfg_opt}->{$sec}->{pollInterval};
                 if ($mic->has_capability('IDLE') && !$intvl) {
-                        $intvl = $self->{imap_opt}->{$sec}->{idleInterval};
+                        $intvl = $self->{cfg_opt}->{$sec}->{idleInterval};
                         push @$idle, [ $uri, $intvl // () ];
                 } else {
                         push @{$poll->{$intvl || 120}}, $uri;