Gnus development mailing list
 help / color / mirror / Atom feed
* Maintaining the list of existing articles for nnimap
@ 2012-02-01 14:16 Lars Ingebrigtsen
  2012-02-01 15:43 ` Andreas Schwab
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2012-02-01 14:16 UTC (permalink / raw)
  To: ding

I was thinking about finally implementing keeping track of existing
articles in IMAP folders.  This requires that all nnimap groups that
don't have this data do a complete refresh (once), which might be slow,
but that's OK.

The bigger problem is that if you start Ma Gnus, get the
`(exist (100 . 200))' data in your newsrc, and then start No Gnus, which
doesn't update this, and then start Ma Gnus again, then Ma Gnus will
think that the articles that arrived while you were using No Gnus
doesn't exist.

That's no fun.

Hm...  Gnus could check whether `gnus-newsrc-file-version' is less than
Ma Gnus, and if so, it could delete all `exists' parameters from the
.newsrc.eld, and let Ma Gnus re-sync the data.  That would solve the
problem, but be quite slow if one is switching back and forth a lot...

Hm...  I dunno...

-- 
(domestic pets only, the antidote for overdose, milk.)
  http://lars.ingebrigtsen.no  *  Sent from my Rome




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Maintaining the list of existing articles for nnimap
  2012-02-01 14:16 Maintaining the list of existing articles for nnimap Lars Ingebrigtsen
@ 2012-02-01 15:43 ` Andreas Schwab
  2012-02-01 19:46   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Schwab @ 2012-02-01 15:43 UTC (permalink / raw)
  To: ding

Lars Ingebrigtsen <larsi@gnus.org> writes:

> The bigger problem is that if you start Ma Gnus, get the
> `(exist (100 . 200))' data in your newsrc, and then start No Gnus, which
> doesn't update this, and then start Ma Gnus again, then Ma Gnus will
> think that the articles that arrived while you were using No Gnus
> doesn't exist.

How about storing the complement of the set?

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Maintaining the list of existing articles for nnimap
  2012-02-01 15:43 ` Andreas Schwab
@ 2012-02-01 19:46   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2012-02-01 19:46 UTC (permalink / raw)
  To: ding

Andreas Schwab <schwab@linux-m68k.org> writes:

> How about storing the complement of the set?

That would help a bit, but articles that should have been discovered as
non-existing by No Gnus while doing `g' won't be added to the list.

But having a slightly non-correct "non-existant" list would not be as
disastrous as having a non-correct "existant" list, so perhaps that's
the best solution, anyway.  Hm...

-- 
(domestic pets only, the antidote for overdose, milk.)
  http://lars.ingebrigtsen.no  *  Sent from my Rome



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-02-01 19:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-01 14:16 Maintaining the list of existing articles for nnimap Lars Ingebrigtsen
2012-02-01 15:43 ` Andreas Schwab
2012-02-01 19:46   ` Lars Ingebrigtsen

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).