diff options
author | Eric Wong <e@80x24.org> | 2021-09-19 12:50:31 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-09-19 19:53:02 +0000 |
commit | 207f0f93632e26818f2ed3b9d78bf3251b5a69b3 (patch) | |
tree | 983c7061cadbd595b479aa0ae10fb0dd0c393464 /lib | |
parent | c029c9e085ca1f1b1319e566157e04f9c972c55b (diff) | |
download | public-inbox-207f0f93632e26818f2ed3b9d78bf3251b5a69b3.tar.gz |
watch: use net_reader->mic_new wrapper for SOCKS+TLS
This brings -watch up to feature parity with lei with SOCKS support.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/Watch.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/Watch.pm b/lib/PublicInbox/Watch.pm index 43ee0714..387eb6d2 100644 --- a/lib/PublicInbox/Watch.pm +++ b/lib/PublicInbox/Watch.pm @@ -358,7 +358,8 @@ sub watch_imap_idle_1 ($$$) { my $mic; local $0 = $uri->mailbox." $sec"; until ($self->{quit}) { - $mic //= PublicInbox::IMAPClient->new(%$mic_arg,Keepalive => 1); + $mic //= PublicInbox::NetReader::mic_new( + $self, $mic_arg, $sec, $uri); my $err; if ($mic && $mic->IsConnected) { local $self->{mics_cached}->{$sec} = $mic; |