From 26c426cf6fd9a3f44f11fa30e4824aeac574a6a0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 11 Jun 2021 09:42:40 +0000 Subject: lei ls-mail-source: list IMAP folders and NNTP groups While other tools can provide the same functionality, having integration with git-credential is convenient, here. Caching and completion will be implemented separately. --- lib/PublicInbox/LeiInput.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/LeiInput.pm') diff --git a/lib/PublicInbox/LeiInput.pm b/lib/PublicInbox/LeiInput.pm index 24211bf0..92d67715 100644 --- a/lib/PublicInbox/LeiInput.pm +++ b/lib/PublicInbox/LeiInput.pm @@ -229,7 +229,7 @@ sub prepare_inputs { # returns undef on error if ($input =~ m!\A(?:imaps?|nntps?|s?news)://!i) { require PublicInbox::NetReader; $net //= PublicInbox::NetReader->new; - $net->add_url($input); + $net->add_url($input, $self->{-ls_ok}); push @{$sync->{ok}}, $input if $sync; } elsif ($input_path =~ m!\Ahttps?://!i) { # mboxrd.gz # TODO: how would we detect r/w JMAP? -- cgit v1.2.3-24-ge0c7