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:03 +0000
committerEric Wong <e@80x24.org>2021-09-09 05:42:57 +0000
commit3bb66820e09ba26d811aff594f8dbd06f270bed5 (patch)
tree4634082288abfae0e5acb3d3313d4034963b5f01 /lib/PublicInbox/Watch.pm
parent917eacadf8bf6eb9a24ca34bc6590c6e77e15dd2 (diff)
downloadpublic-inbox-3bb66820e09ba26d811aff594f8dbd06f270bed5.tar.gz
Since these are keyed by IMAP and NNTP URIs which can never
conflict, it simplifies our internals to keep them in one big
hash since we'll add POP3 and JMAP client support.
Diffstat (limited to 'lib/PublicInbox/Watch.pm')
-rw-r--r--lib/PublicInbox/Watch.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Watch.pm b/lib/PublicInbox/Watch.pm
index 20ce0616..43ee0714 100644
--- a/lib/PublicInbox/Watch.pm
+++ b/lib/PublicInbox/Watch.pm
@@ -353,7 +353,7 @@ sub imap_idle_once ($$$$) {
 sub watch_imap_idle_1 ($$$) {
         my ($self, $uri, $intvl) = @_;
         my $sec = uri_section($uri);
-        my $mic_arg = $self->{mic_arg}->{$sec} or
+        my $mic_arg = $self->{net_arg}->{$sec} or
                         die "BUG: no Mail::IMAPClient->new arg for $sec";
         my $mic;
         local $0 = $uri->mailbox." $sec";