Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Subject: Re: Backend writing
Date: Sat, 04 Aug 2001 02:11:26 +0200	[thread overview]
Message-ID: <iluae1gd6q9.fsf@barbar.josefsson.org> (raw)
In-Reply-To: <m3snf87ll7.fsf@multivac.cwru.edu> (prj@po.cwru.edu's message of "Fri, 03 Aug 2001 19:46:38 -0400")

prj@po.cwru.edu (Paul Jarc) writes:

> Simon Josefsson <jas@extundo.com> writes:
>> Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:
>>> But haven't you just changed nnimap to ignore article renumberings?  I
>>> suppose you wouldn't do that unless it's safe?
>> 
>> I don't know if it's safe, that's what Oort is for. <g>
> 
> FWIW, nnmaildir has been renumbering articles each time you open the
> server since 2001-04-11.  No problems yet.  But you seem to be dealing
> with something that changes more frequently than that, right?

Depends, some IMAP server seem to change the UIDVALIDITY value more or
less at will (UIDVALIDITY indicate that a renumbering might have taken
place).  Most don't.  And those that do sometimes doesn't actually
renumber anything, so it just "works" anyway.  The problem is when a
uidvalidity change is actually due to a real renumbering, and even
more problem arise if the renumbering re-use article numbers.  This
kind of IMAP server design is rare though, so in practice I don't
think it's a big problem.

I think nnmaildir is different though, don't you hide the renumbering
from Gnus (by translating back and forth between old and new
numbering)?  Nnimap doesn't, it simply present the servers article
numbers to Gnus and hopes for the best.  (And assuming uidvalidity
doesn't change, the IMAP design guarantee that Gnus will be happy.
Problem is when uidvalidity change...).

>> Basicly, nnimap makes sure the old NOV cache isn't used when a
>> uidvalidity has changed.  [...]  It gets sort of ugly if a backend
>> has to update internal things of Gnus's cache and agent.
> 
> Does this mean nnimap is stepping outside the backend interface?

Not this time, nnimap doesn't mess with the cache or agent.  So an
article cached by Gnus might become invalid if a renumbering has
happened.  It would be nice if nnimap could tell the cache/agent to
invalidate everything it knows about stored articles.



  reply	other threads:[~2001-08-04  0:11 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-03 18:04 Sean Rima
2001-08-03 19:24 ` Kai Großjohann
2001-08-03 19:39 ` Paul Jarc
2001-08-03 20:57   ` Kai Großjohann
2001-08-03 21:36     ` Paul Jarc
2001-08-03 22:16       ` Kai Großjohann
2001-08-03 21:44     ` Simon Josefsson
2001-08-03 22:07       ` Kai Großjohann
2001-08-03 23:35         ` Simon Josefsson
2001-08-03 23:46           ` Paul Jarc
2001-08-04  0:11             ` Simon Josefsson [this message]
2001-08-04  0:20               ` Paul Jarc
2001-08-04  0:41                 ` Simon Josefsson
2001-08-04  0:57                   ` Paul Jarc
2001-08-04 12:36                     ` Simon Josefsson
2001-08-05  8:27                       ` Paul Jarc
2001-08-03 23:57           ` Paul Jarc
2001-08-04  0:12             ` Simon Josefsson
2001-08-04  0:21               ` Paul Jarc
2001-08-04 11:46           ` Kai Großjohann

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=iluae1gd6q9.fsf@barbar.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).