Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: ding@gnus.org
Subject: Re: Returning to ticks on read-only imap servers
Date: Fri, 08 Oct 2010 19:00:10 +0200	[thread overview]
Message-ID: <m31v80liw5.fsf@quimbies.gnus.org> (raw)
In-Reply-To: <m3eic0hge6.fsf@carbon.jhcloos.org>

James Cloos <cloos@jhcloos.com> writes:

> LMI> So Gnus needs to now the status before doing anything, really,
> LMI> which seems to imply that nnimap has to do a SELECT on any
> LMI> mailboxes it hasn't seen before.  Hm.  That's actually not
> LMI> very difficult, since it already knows this stuff.
>
> A SELECT on any group it hasn't seen before is a good idea anyway.

Yeah.  I think I have a clear idea how to proceed here now.  For groups
it knows already, it'll output either EXAMINE+FETCH (or EXAMINE QRESYNC)
for the servers that support that.  For groups it doesn't know, it'll
output a SELECT+FETCH 1:*.  That SELECT will tell nnimap whether it
supports flags or not, and nnimap can then stash that info.

In the same sweep, it'll examine the EXAMINE results for mismatches in
UIDVALIDITY, and do an extra SELECT+FETCH 1:* for those groups.

So for normal `g' work, it'll be no slower than today (and much, much
faster for servers with QRESYNC).  Only the appearance of new groups, or
UIDVALIDITY mismatches, will trigger more chatter between Gnus and the
IMAP server.

I'll work on implementing this this weekend.  Once it's implemented, the
very first time you use Gnus after the push, Gnus will issue a
SELECT+FETCH 1:* for all your groups to get a complete data set again.

And I'll change where nnimap stashes the data.  I was confused, so I
stashed the active data (and stuff) in the info marks, while they should
be in the info parameters section.  This will also fix itself the first
time you run this.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




  reply	other threads:[~2010-10-08 17:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-05 19:16 Michael Welsh Duggan
2010-10-05 20:25 ` Steinar Bang
2010-10-05 21:01   ` Michael Welsh Duggan
2010-10-07 18:59 ` Lars Magne Ingebrigtsen
2010-10-07 21:37   ` Michael Welsh Duggan
2010-10-07 22:40     ` Lars Magne Ingebrigtsen
2010-10-08 15:07       ` James Cloos
2010-10-08 17:00         ` Lars Magne Ingebrigtsen [this message]
2010-10-08 18:22           ` Julien Danjou
2010-10-08 18:26             ` Lars Magne Ingebrigtsen
2010-10-08 18:28               ` Julien Danjou
2010-10-08 18:49                 ` Lars Magne Ingebrigtsen
2010-10-08 19:34                   ` Julien Danjou
2010-10-08 21:32                     ` Dan Christensen
2010-10-09  6:57                       ` Julien Danjou
2010-10-09  8:10                         ` Michael Welsh Duggan
2010-10-09  8:26                           ` Julien Danjou

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=m31v80liw5.fsf@quimbies.gnus.org \
    --to=larsi@gnus.org \
    --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).