Gnus development mailing list
 help / color / mirror / Atom feed
From: David Engster <deng@randomsample.de>
To: ding@gnus.org
Subject: Re: request-group-articles for nnimap
Date: Fri, 03 Sep 2010 20:10:41 +0200	[thread overview]
Message-ID: <8739tqitpa.fsf@randomsample.de> (raw)
In-Reply-To: <87mxrzyosw.fsf_-_@lifelogs.com> (Ted Zlatanov's message of "Fri, 03 Sep 2010 07:49:51 -0500")

Ted Zlatanov writes:
> On Thu, 02 Sep 2010 16:39:11 +0200 David Engster <deng@randomsample.de> wrote: 
>
> DE> Yes, exactly. The nnimap-request-group-articles I posted simply returns
> DE> the list of available article numbers in that group (which could be
> DE> further compressed into the above range notation). Requesting the range
> DE> of articles can take a second for very large groups, so some kind of
> DE> caching should be done.
>
> Let the backend decide if caching is possible since it has the best
> knowledge of when the data is old.  It also knows best where to cache
> (on the server, in memory, on disk, etc.)  The caching policy can be set
> globally, but the rest should be on the backend IMO. 

Yes, it's probably easier when the backend does it. But we can worry
about that later. :-)

> DE> Anyway, this would be an optional back end function, and Gnus can query
> DE> the back end for availability and use it (if the user wants it). I for
> DE> example don't have much problems with the article count, but I don't
> DE> delete much and use Dovecot. But there are IMAP servers out there
> DE> (Zimbra...) which use absolutely insane values for article numbers;
> DE> maybe it's using those for Mersenne prime searching or something.
>
> So there's two pieces: the general facility and support for it in
> nnimap.  Let's get the nnimap piece done first and verify it works since
> we're close.  Can you modify your function to do compressed ranges?

It's a simple matter of calling gnus-compress-sequence.

>  Do you know of any alternate implementations or patches (I haven't
> kept track)?

As I wrote, Vitaly already had patches, also for the general backend,
but he extended the active information, without the usage of a new API
function. I think his patches can still be seen here:

http://repo.or.cz/w/more-gnus.git

My last test of those patches still showed some problems (see
http://thread.gmane.org/gmane.emacs.gnus.general/67238/focus=67407), but
they already show which parts of Gnus are affected.

We should first decide if we should build upon Vitaly's work with the
extended active, or if we use 'nnchoke-request-group-articles'. I have
difficulties following Lars' programming spree; maybe he has already
committed something which has decided this. ;-)

-David



  reply	other threads:[~2010-09-03 18:10 UTC|newest]

Thread overview: 79+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-02  2:22 Faster, lolcat. Faster! Lars Magne Ingebrigtsen
2010-09-02  2:41 ` Ted Zlatanov
2010-09-02  2:52   ` Lars Magne Ingebrigtsen
2010-09-02  4:48 ` Daniel Pittman
2010-09-02 14:26   ` Lars Magne Ingebrigtsen
2010-09-02 19:44   ` Russ Allbery
2010-09-02  5:20 ` David Engster
2010-09-02 14:15   ` Lars Magne Ingebrigtsen
2010-09-15 22:53   ` Tom Tromey
2010-09-02  7:29 ` Steinar Bang
2010-09-02 10:36 ` Ted Zlatanov
2010-09-02 11:10   ` Julien Danjou
2010-09-02 11:44     ` Frank Schmitt
2010-09-02 13:00       ` David Engster
2010-09-02 13:27         ` Ted Zlatanov
2010-09-02 14:23           ` Lars Magne Ingebrigtsen
2010-09-02 14:39             ` David Engster
2010-09-03 12:49               ` request-group-articles for nnimap (was: Faster, lolcat. Faster!) Ted Zlatanov
2010-09-03 18:10                 ` David Engster [this message]
2010-09-03 18:27                   ` request-group-articles for nnimap Lars Magne Ingebrigtsen
2010-09-07 15:45                   ` Ted Zlatanov
2010-09-02 14:17   ` Faster, lolcat. Faster! Lars Magne Ingebrigtsen
2010-09-03 12:44     ` Ted Zlatanov
2010-09-03 13:08       ` Lars Magne Ingebrigtsen
2010-09-02 11:13 ` Julien Danjou
2010-09-02 12:44   ` Ted Zlatanov
2010-09-02 13:04     ` Julien Danjou
2010-09-02 13:15       ` Adam Sjøgren
2010-09-02 13:23       ` Ted Zlatanov
2010-09-02 13:25       ` Steinar Bang
2010-09-02 17:10 ` James Cloos
2010-09-03 16:59   ` Lars Magne Ingebrigtsen
2010-09-02 22:33 ` Romain Francoise
2010-09-03 17:01   ` Lars Magne Ingebrigtsen
2010-09-04 17:20     ` Lars Magne Ingebrigtsen
2010-09-04 17:57       ` Lars Magne Ingebrigtsen
2010-09-04 18:31         ` Adam Sjøgren
2010-09-04 18:34           ` Lars Magne Ingebrigtsen
2010-09-04 18:45             ` Adam Sjøgren
2010-09-04 18:48               ` Adam Sjøgren
2010-09-04 18:53                 ` Lars Magne Ingebrigtsen
2010-09-04 21:30                   ` Lars Magne Ingebrigtsen
2010-09-04 21:36                     ` Lars Magne Ingebrigtsen
2010-09-04 21:57                       ` Lars Magne Ingebrigtsen
2010-09-04 22:45                         ` Lars Magne Ingebrigtsen
2010-09-04 22:50                           ` Lars Magne Ingebrigtsen
2010-09-04 23:03                             ` Adam Sjøgren
2010-09-05  0:19                               ` Lars Magne Ingebrigtsen
2010-09-05 11:58                                 ` Adam Sjøgren
2010-09-05  9:10                             ` Romain Francoise
2010-09-05  9:59                               ` Steinar Bang
2010-09-05  9:06                     ` Romain Francoise
2010-09-05 11:31                       ` Lars Magne Ingebrigtsen
2010-09-05 12:44                         ` Romain Francoise
2010-09-05 12:58                           ` Lars Magne Ingebrigtsen
2010-09-04 18:50               ` Adam Sjøgren
2010-09-04 19:31                 ` Adam Sjøgren
2010-09-04 19:49       ` Romain Francoise
2010-09-04 19:57         ` Lars Magne Ingebrigtsen
2010-09-04 20:08           ` Lars Magne Ingebrigtsen
2010-09-04 20:17             ` Lars Magne Ingebrigtsen
2010-09-04 22:01               ` James Cloos
2010-09-04 22:14                 ` Lars Magne Ingebrigtsen
2010-09-05 21:25                   ` James Cloos
2010-09-05 22:21                     ` Lars Magne Ingebrigtsen
2010-09-06 19:05                       ` James Cloos
2010-09-06 19:58                         ` Lars Magne Ingebrigtsen
2010-09-05 22:41                     ` Lars Magne Ingebrigtsen
2010-09-05 22:48                       ` Lars Magne Ingebrigtsen
2010-09-04 23:10                 ` Steinar Bang
2010-09-04 22:44               ` Romain Francoise
2010-09-04 22:47                 ` Lars Magne Ingebrigtsen
2010-09-04 20:12           ` Adam Sjøgren
2010-09-04 22:16           ` Romain Francoise
2010-09-04 23:00             ` Lars Magne Ingebrigtsen
2010-09-05  8:59               ` Romain Francoise
2010-09-05 11:29                 ` Lars Magne Ingebrigtsen
2010-09-04 22:37       ` Steinar Bang
2010-09-04 22:44         ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8739tqitpa.fsf@randomsample.de \
    --to=deng@randomsample.de \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).