Eric Wong <[email protected]> wrote:
> Luis Chamberlain <[email protected]> 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 <TAB><TAB>
>
> 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")
<https://public-inbox.org/meta/[email protected]/>
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)
--
unsubscribe: one-click, see List-Unsubscribe header
archive: https://public-inbox.org/meta/