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

* Re: IMAP marks went missing from a group
  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  5:37 ` Lars Magne Ingebrigtsen
  1 sibling, 1 reply; 6+ messages in thread
From: Dan Christensen @ 2010-12-30  0:34 UTC (permalink / raw)
  To: ding

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

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

Yay!  Somehow my set-up seems to tickle this once a week or so.
But from your explanation, it sounds like something nnimap specific?  
I see the problem in nnfolder groups too.

Dan




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

* Re: IMAP marks went missing from a group
  2010-12-30  0:34 ` Dan Christensen
@ 2011-01-02  5:28   ` Lars Magne Ingebrigtsen
  2011-01-02 23:53     ` Dan Christensen
  0 siblings, 1 reply; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-01-02  5:28 UTC (permalink / raw)
  To: ding

Dan Christensen <jdc@uwo.ca> writes:

> But from your explanation, it sounds like something nnimap specific?  
> I see the problem in nnfolder groups too.

Do you have backend marks switched on for nnfolder?

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




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

* Re: IMAP marks went missing from a group
  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:37 ` Lars Magne Ingebrigtsen
  1 sibling, 0 replies; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-01-02  5:37 UTC (permalink / raw)
  To: ding

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

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

I think this may now be fixed.

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




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

* Re: IMAP marks went missing from a group
  2011-01-02  5:28   ` Lars Magne Ingebrigtsen
@ 2011-01-02 23:53     ` Dan Christensen
  2011-01-03  0:03       ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: Dan Christensen @ 2011-01-02 23:53 UTC (permalink / raw)
  To: ding

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Dan Christensen <jdc@uwo.ca> writes:
>
>> But from your explanation, it sounds like something nnimap specific?  
>> I see the problem in nnfolder groups too.
>
> Do you have backend marks switched on for nnfolder?

My nnfolder-marks-is-evil variable is set to nil, which means that *.mrk
files are used.  Is that what you mean?  Should I set that variable to t?
I don't use those *.mrk files myself, so at the very least, I guess it
would make Gnus a bit more efficient if I set it to t?

Dan




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

* Re: IMAP marks went missing from a group
  2011-01-02 23:53     ` Dan Christensen
@ 2011-01-03  0:03       ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-01-03  0:03 UTC (permalink / raw)
  To: ding

Dan Christensen <jdc@uwo.ca> writes:

> My nnfolder-marks-is-evil variable is set to nil, which means that *.mrk
> files are used.  Is that what you mean?  Should I set that variable to t?
> I don't use those *.mrk files myself, so at the very least, I guess it
> would make Gnus a bit more efficient if I set it to t?

I was just wondering.  If you do use marks, it could be the same bug
I've seen with IMAP.  If not, it's a different bug.

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