Re: Improving trn: LISTGROUP with no arguments vs. ...?

Liste des GroupesRevenir à ns nntp 
Sujet : Re: Improving trn: LISTGROUP with no arguments vs. ...?
De : urs (at) *nospam* buil.tin.org (Urs Janßen)
Groupes : news.software.nntp
Date : 05. Nov 2024, 01:53:27
Autres entêtes
Organisation : tin.org
Message-ID : <vgbqa7$fbd$1@nntp.de>
References : 1
User-Agent : tin/2.6.4-20241019 ("Banff") (Linux/6.1.0-25-amd64 (x86_64))
Richard wrote:
What's the best alternative to LISTGROUP with no args?

you could implement something like tins -G option:

|   -G article-limit
|           Limit  the  number  of  articles/group  to retrieve from the
|           server.  If article-limit is > 0 not more than the last  ar‐
|           ticle-limit  articles/group  are fetched from the server. If
|           article-limit is < 0 tin will start fetching  articles  from
|           your first unread minus absolute value of article-limit. De‐
|           fault is 0, which means no limit.

see art.c:setup_hard_base() ~240

(or just the part with the negative limit).

or just rely on the overview data and article numbers (if present).

both suggestion do have drawbacks (which partially undermine the actual
purpose of listgroup - get zthe numbers of all available articles).

with limits you do not see all articles in the group (which i.e. may
affect threading) and relying on overview data is not fail-safe as that
data may not be up to date (regadring expired or cancelled articles).

Date Sujet#  Auteur
5 Nov 24 * Improving trn: LISTGROUP with no arguments vs. ...?6Richard
5 Nov 24 +- Re: Improving trn: LISTGROUP with no arguments vs. ...?1Urs Janßen
5 Nov 24 `* Re: Improving trn: LISTGROUP with no arguments vs. ...?4Julien ÉLIE
6 Nov 24  `* Re: Improving trn: LISTGROUP with no arguments vs. ...?3Richard
6 Nov 24   `* Re: Improving trn: LISTGROUP with no arguments vs. ...?2Julien ÉLIE
18 Nov 24    `- Re: Improving trn: LISTGROUP with no arguments vs. ...?1Richard

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal