Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Subject: Re: nnimap problem solved by removing .agentview and .overview
Date: Fri, 13 Aug 2004 00:28:40 +0200	[thread overview]
Message-ID: <iluisbo0z53.fsf@latte.josefsson.org> (raw)
In-Reply-To: <uu0v8qc1t.fsf@xpediantsolutions.com>

Kevin Greiner <kgreiner@xpediantsolutions.com> writes:

>> I'd even take another step back: Exactly what problem is in the design
>> of agent make it incompatible with nnimap?  I believe the designs are
>> pretty compatible.
>
> The agent assumes that the backend will never change the state of
> anything already known to the agent.  The fact that UIDVALIDITY exists
> is proof that that isn't the case with imap.

Right.  Even without the Agent, nnimap doesn't handle UIDVALIDITY
changes anyway, though...

> We could propagate the uid concept into the agent then have the agent
> verify its uid against the backend's uid before trusting its own
> cache.  It would probably work but I'm worried about the performance
> impact (would nnimap have to query the server each time the uid is
> checked?) and having to dummy up uid values for all of the other
> backends.

UIDVALIDITY is sent automatically when you enter a mailbox in IMAP, or
when you do a STATUS on a group (like Gnus does for each mailbox when
you press 'g'), so it doesn't cost much.  Nnimap store the current
uidvalidity as a group parameter too.  Nnimap.el used to compare the
value against the server, but there is no sane action nnimap.el can
take when the numbers doesn't match, so the comparison and user query
was disabled.

I share your feelings, it might hurt more than it pays to introduce
the uidvalidity concept in Gnus.  Perhaps still not that many IMAP
servers implement UIDVALIDITY in the right way too.  Some used to
increment UIDVALIDITY all the time (some used to set it to current
unix time...).  Some never increment it, even when UIDs are no longer
valid.  Ignoring UIDVALIDITY used to work better in practice, than
implement the proper handling of UIDVALIDITY changes.  That might have
changed, but then there is the problem of deciding how to actually
implement the proper handling, too..  it looks ugly.




  reply	other threads:[~2004-08-12 22:28 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-11 21:36 Mats Lidell
2004-08-11 22:05 ` Steven E. Harris
2004-08-12  2:11 ` Kevin Greiner
2004-08-12 15:13   ` Steven E. Harris
2004-08-12 15:46     ` Simon Josefsson
2004-08-12 16:08       ` Steven E. Harris
2004-08-12 16:48         ` Simon Josefsson
2004-08-12 17:26           ` Steven E. Harris
2004-08-12 19:31             ` Simon Josefsson
2004-08-16 15:02               ` Steven E. Harris
2004-08-16 15:11                 ` Steven E. Harris
2004-08-16 15:31                 ` Simon Josefsson
2004-08-16 16:45                   ` Steven E. Harris
2004-08-16 16:59                     ` Simon Josefsson
2004-08-16 17:50                       ` gnus-parameters remodeled for Topics (was: nnimap problem solved by removing .agentview and .overview) Ted Zlatanov
2004-08-16 20:03                         ` gnus-parameters remodeled for Topics Steven E. Harris
2004-08-17  3:13                   ` nnimap problem solved by removing .agentview and .overview Steven E. Harris
2004-08-17  8:23                     ` Simon Josefsson
     [not found]                       ` <ilupt5q2mwv.fsf-Hx3HMpEclzRikQyLtWShHUB+6BGkLq7r@public.gmane.org>
2004-08-17 11:59                         ` Jochen Küpper
2004-08-17 15:50                       ` Steven E. Harris
2004-08-17 16:40                         ` Simon Josefsson
2004-08-12 19:49       ` Mats Lidell
2004-08-12 20:35         ` Simon Josefsson
2004-08-20 22:09           ` Mats Lidell
2004-08-12 21:30       ` Kevin Greiner
2004-08-12 22:28         ` Simon Josefsson [this message]
2004-08-16 17:45       ` Ted Zlatanov
2004-08-16 18:34         ` Chris Green
2004-08-16 19:43           ` Steven E. Harris
2004-08-16 19:54         ` Steven E. Harris
2004-08-17 11:39         ` Steinar Bang

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=iluisbo0z53.fsf@latte.josefsson.org \
    --to=jas@extundo.com \
    /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).