Gnus development mailing list
 help / color / mirror / Atom feed
* IMAP marks went missing from a group
@ 2010-12-29 17:27 Lars Magne Ingebrigtsen
  2010-12-30  0:34 ` Dan Christensen
  2011-01-02  5:37 ` Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-12-29 17:27 UTC (permalink / raw)
  To: ding

While on holiday, I managed to (sort of) reproduce the problem that some
people have seen with marks going missing in a group.

I managed to identify the sequence, and I think it was this:

00:32:10 2530 SELECT "misc".
00:32:10 2531 UID STORE 1684:1685,1694,1707:1708,1785,1803,1808,1816 -FLAGS.SILENT (\Flagged).
00:32:10 2532 UID STORE  -FLAGS.SILENT (gnus-dormant).
00:32:10 2533 UID STORE  -FLAGS.SILENT (\Flagged).
00:32:10 2534 UID STORE  -FLAGS.SILENT (gnus-dormant).
00:32:10 2535 UID STORE  -FLAGS.SILENT (\Flagged).
00:32:10 2536 UID STORE  -FLAGS.SILENT (gnus-dormant).
00:32:10 2537 UID STORE  -FLAGS.SILENT (\Flagged).
00:32:10 2538 UID STORE  -FLAGS.SILENT (gnus-dormant).

From circumstantial evidence, I think this could only have been the
result of trying to enter a group.

Here's a normal enter-a-group sequence, from the same group:

02:05:26 3037 SELECT "misc".
02:05:26 3038 UID FETCH 1684:1685,1694,1707:1708,1785,1803,1808,1816 (UID RFC822.SIZE BODYSTRUCTURE BODY.PEEK[HEADER.FIELDS (Subject From Date Message-Id References In-Reply-To Xref To Newsgroups)]).

Looking at the code, I suspect that there's one real bug here and one
stupid effect of that bug.

I think the SELECT somehow failed, and Gnus somehow came to believe that
there were no articles in the group.  (That's the bug.)  Gnus then
"sanitises" the marks by removing all marks on articles that it now
thinks doesn't exist.  (That's the stupid effect.)

I think the first thing to fix is the marks-sanitation code.  It makes
no sense to send those mark updates to the backend -- if the articles
really don't exist, then there are no marks to sanitise.  If the
articles do exist, then the sanitation is wrong.

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




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

end of thread, other threads:[~2011-01-03  0:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-29 17:27 IMAP marks went missing from a group Lars Magne Ingebrigtsen
2010-12-30  0:34 ` Dan Christensen
2011-01-02  5:28   ` Lars Magne Ingebrigtsen
2011-01-02 23:53     ` Dan Christensen
2011-01-03  0:03       ` Lars Magne Ingebrigtsen
2011-01-02  5:37 ` Lars Magne 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).