From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 1EC3E1F8C8; Sun, 19 Sep 2021 21:21:45 +0000 (UTC) Date: Sun, 19 Sep 2021 21:21:45 +0000 From: Eric Wong To: Luis Chamberlain Cc: meta@public-inbox.org Subject: Re: make menuconfig interface for lei / grok-pull Message-ID: <20210919212145.GA15558@dcvr> References: <20210915230605.GA22173@dcvr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210915230605.GA22173@dcvr> List-Id: Eric Wong wrote: > Luis Chamberlain wrote: > # populate ~/.cache/lei/uri_folder/.sqlite3 > lei ls-mail-source nntp://nntp.lore.kernel.org lei ls-mail-source -l nntp://nntp.lore.kernel.org I just made "-l" show pretty JSON output in the terminal to help find NNTP article ranges. > # if you're using bash: > . contrib/completion/lei-completion.bash > > lei import > > lei import will download the entire newsgroup, which may get > huge, unfortunately. It should support ranges (e.g. > nntp://example.com/inbox.foo.example/900-1000) but the URI > package doesn't support it, yet... I was wrong about the URI package not supporting ranges, it does; and forgot lei even seemed to have (untested) support for it. It should be working, now, just pushed out commit 67fe4d8d90ac77419c8fc41457c849aa7d366a9d ("net_reader: fix single NNTP article fetch, test ranges") Neither Net::NNTP nor Mail::IMAPClient support pipelining out-of-the-box, though; so network latency is still a problem. I'm still not sure about doing an interactive UI (my brain tends to struggle with that stuff :x); but I think extending tab-completion for epochs and NNTP article ranges would be good (I'm not particularly good with tab-completion, either :x)