Gnus development mailing list
 help / color / mirror / Atom feed
* Wrong number of unread messages in imap group
@ 2010-10-27 14:54 Michael Welsh Duggan
  2010-10-29 23:11 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 15+ messages in thread
From: Michael Welsh Duggan @ 2010-10-27 14:54 UTC (permalink / raw)
  To: ding

Checkout from today's gnus, ref
7aa1e6042c44f32f21bc9fbc149ace8d56f8696d.

When I start gnus, I have a group that states that it has 7 unread
messages (which is incorrect).  Entering that groups shows 7 messages.
M-g on the group properly updates the unread count to 22, and all is
well.  Here is all relevant information I can think of to diagnose this:

(Note: Carriage returns are stripped.)

From .newsrc.eld, before gnus is started:

("INBOX/ff" 1 ((1 . 4503) (4505 . 4508) (4510 . 4528) 4540 (4543 . 4704)
(4708 . 4710) (4713 . 4715)) ((seen (3956 . 4715))) nil ((modseq)
(uidvalidity . "75981") (active 4504 . 4715) (permanent-flags %Seen
%Answered %Flagged %Deleted %Draft $MDNSent) (total-expire . t)
(imap-status . "4232 1 4231")))

After gnus is started, number of unread messages displayed: 7

Value of nnimap-object in the nntp buffer:
[cl-struct-nnimap "INBOX/misc" #<process *nnimap*> nil
                  ("IMAP4" "IMAP4REV1" "AUTH=NTLM" "AUTH=GSSAPI"
                  "AUTH=PLAIN" "IDLE" "NAMESPACE" "LITERAL+")
                  (t
                   ("OK"
                    ("READ-WRITE")
                    "SELECT" "completed.")
                   ("12924" "EXISTS")
                   ("1" "RECENT")
                   ("FLAGS"
                    ("\\Seen" "\\Answered" "\\Flagged" "\\Deleted"
                    "\\Draft" "$MDNSent"))
                   ("OK"
                    ("PERMANENTFLAGS" "(\\Seen" "\\Answered" "\\Flagged"
                    "\\Deleted" "\\Draft" "$MDNSent)")
                    "Permanent" "flags")
                   ("OK"
                    ("UNSEEN" "12910")
                    "Is" "the" "first" "unseen" "message")
                   ("OK"
                    ("UIDVALIDITY" "5983")
                    "UIDVALIDITY" "value")
                   ("OK"
                    ("UIDNEXT" "14395")
                    "The" "next" "unique" "identifier" "value"))
                  nil "exchange"
                  (19656 14889 789054)
                  "* OK Microsoft Exchange Server 2007 IMAP4 service
                  ready"]

Result of `G p':

((modseq)
 (uidvalidity . "75981")
 (active 4617 . 4717)
 (permanent-flags %Seen %Answered %Flagged %Deleted %Draft $MDNSent)
 (total-expire . t)
 (imap-status . "4232 1 4231"))

Relevant potion of *imap-log*:

10:16:46 28 EXAMINE "INBOX/ff"
10:16:46 29 UID FETCH 4617:* FLAGS

Relevant portion of response:

* 106 EXISTS
* 0 RECENT
* FLAGS (%Seen %Answered %Flagged %Deleted %Draft $MDNSent)
* OK [PERMANENTFLAGS ()] Permanent flags
* OK [UNSEEN 1] Is the first unseen message
* OK [UIDVALIDITY 75981] UIDVALIDITY value
* OK [UIDNEXT 4718] The next unique identifier value
28 OK [READ-ONLY] EXAMINE completed.
* 16 FETCH (FLAGS (%Seen) UID 4617)
* 17 FETCH (FLAGS (%Seen) UID 4618)
* 18 FETCH (FLAGS (%Seen) UID 4629)
* 19 FETCH (FLAGS (%Seen) UID 4630)
* 20 FETCH (FLAGS (%Seen) UID 4631)
* 21 FETCH (FLAGS (%Seen) UID 4632)
* 22 FETCH (FLAGS (%Seen) UID 4633)
* 23 FETCH (FLAGS (%Seen) UID 4634)
* 24 FETCH (FLAGS (%Seen) UID 4635)
* 25 FETCH (FLAGS (%Seen) UID 4636)
* 26 FETCH (FLAGS (%Seen) UID 4637)
* 27 FETCH (FLAGS (%Seen) UID 4638)
* 28 FETCH (FLAGS (%Seen) UID 4639)
* 29 FETCH (FLAGS (%Seen) UID 4640)
* 30 FETCH (FLAGS (%Seen) UID 4641)
* 31 FETCH (FLAGS (%Seen) UID 4642)
* 32 FETCH (FLAGS (%Seen) UID 4643)
* 33 FETCH (FLAGS (%Seen) UID 4644)
* 34 FETCH (FLAGS (%Seen) UID 4645)
* 35 FETCH (FLAGS (%Seen) UID 4646)
* 36 FETCH (FLAGS (%Seen) UID 4647)
* 37 FETCH (FLAGS (%Seen) UID 4648)
* 38 FETCH (FLAGS (%Seen) UID 4649)
* 39 FETCH (FLAGS (%Seen) UID 4650)
* 40 FETCH (FLAGS (%Seen) UID 4651)
* 41 FETCH (FLAGS (%Seen) UID 4652)
* 42 FETCH (FLAGS (%Seen) UID 4653)
* 43 FETCH (FLAGS (%Seen) UID 4654)
* 44 FETCH (FLAGS (%Seen) UID 4655)
* 45 FETCH (FLAGS (%Seen) UID 4656)
* 46 FETCH (FLAGS (%Seen) UID 4657)
* 47 FETCH (FLAGS (%Seen) UID 4658)
* 48 FETCH (FLAGS (%Seen) UID 4659)
* 49 FETCH (FLAGS (%Seen) UID 4660)
* 50 FETCH (FLAGS (%Seen) UID 4661)
* 51 FETCH (FLAGS (%Seen) UID 4662)
* 52 FETCH (FLAGS (%Seen) UID 4663)
* 53 FETCH (FLAGS (%Seen) UID 4664)
* 54 FETCH (FLAGS (%Seen) UID 4665)
* 55 FETCH (FLAGS (%Seen) UID 4666)
* 56 FETCH (FLAGS (%Seen) UID 4667)
* 57 FETCH (FLAGS (%Seen) UID 4668)
* 58 FETCH (FLAGS (%Seen) UID 4669)
* 59 FETCH (FLAGS (%Seen) UID 4670)
* 60 FETCH (FLAGS (%Seen) UID 4671)
* 61 FETCH (FLAGS (%Seen) UID 4672)
* 62 FETCH (FLAGS (%Seen) UID 4673)
* 63 FETCH (FLAGS (%Seen) UID 4674)
* 64 FETCH (FLAGS (%Seen) UID 4675)
* 65 FETCH (FLAGS (%Seen) UID 4676)
* 66 FETCH (FLAGS (%Seen) UID 4677)
* 67 FETCH (FLAGS (%Seen) UID 4678)
* 68 FETCH (FLAGS (%Seen) UID 4679)
* 69 FETCH (FLAGS (%Seen) UID 4680)
* 70 FETCH (FLAGS (%Seen) UID 4681)
* 71 FETCH (FLAGS (%Seen) UID 4682)
* 72 FETCH (FLAGS (%Seen) UID 4683)
* 73 FETCH (FLAGS (%Seen) UID 4684)
* 74 FETCH (FLAGS (%Seen) UID 4685)
* 75 FETCH (FLAGS (%Seen) UID 4686)
* 76 FETCH (FLAGS (%Seen) UID 4687)
* 77 FETCH (FLAGS (%Seen) UID 4688)
* 78 FETCH (FLAGS (%Seen) UID 4689)
* 79 FETCH (FLAGS (%Seen) UID 4690)
* 80 FETCH (FLAGS (%Seen) UID 4691)
* 81 FETCH (FLAGS (%Seen) UID 4692)
* 82 FETCH (FLAGS (%Seen) UID 4693)
* 83 FETCH (FLAGS (%Seen) UID 4694)
* 84 FETCH (FLAGS (%Seen) UID 4695)
* 85 FETCH (FLAGS (%Seen) UID 4696)
* 86 FETCH (FLAGS (%Seen) UID 4697)
* 87 FETCH (FLAGS (%Seen) UID 4698)
* 88 FETCH (FLAGS (%Seen) UID 4699)
* 89 FETCH (FLAGS (%Seen) UID 4700)
* 90 FETCH (FLAGS (%Seen) UID 4701)
* 91 FETCH (FLAGS (%Seen) UID 4702)
* 92 FETCH (FLAGS (%Seen) UID 4703)
* 93 FETCH (FLAGS (%Seen) UID 4704)
* 94 FETCH (FLAGS () UID 4705)
* 95 FETCH (FLAGS () UID 4706)
* 96 FETCH (FLAGS () UID 4707)
* 97 FETCH (FLAGS (%Seen) UID 4708)
* 98 FETCH (FLAGS (%Seen) UID 4709)
* 99 FETCH (FLAGS (%Seen) UID 4710)
* 100 FETCH (FLAGS () UID 4711)
* 101 FETCH (FLAGS () UID 4712)
* 102 FETCH (FLAGS (%Seen) UID 4713)
* 103 FETCH (FLAGS (%Seen) UID 4714)
* 104 FETCH (FLAGS (%Seen) UID 4715)
* 105 FETCH (FLAGS () UID 4716)
* 106 FETCH (FLAGS () UID 4717)
29 OK FETCH completed.

Number of unread messages after `M-g' on group: 22

What happens in the *imap-log*:

10:18:55 70 LIST "" "*"
10:18:55 71 SELECT "INBOX"
10:18:56 72 UID FETCH 1:* FLAGS
10:18:56 73 SELECT "INBOX/ff"
10:18:56 74 SELECT "INBOX/ff"
10:18:56 75 UID FETCH 1:* FLAGS

What is still in the nntp buffer:

* 106 EXISTS
* 0 RECENT
* FLAGS (%Seen %Answered %Flagged %Deleted %Draft $MDNSent)
* OK [PERMANENTFLAGS (%Seen %Answered %Flagged %Deleted %Draft
* $MDNSent)] Permanent flags
* OK [UNSEEN 1] Is the first unseen message
* OK [UIDVALIDITY 75981] UIDVALIDITY value
* OK [UIDNEXT 4718] The next unique identifier value
74 OK [READ-WRITE] SELECT completed.
* 1 FETCH (FLAGS () UID 4504)
* 2 FETCH (FLAGS () UID 4509)
* 3 FETCH (FLAGS () UID 4529)
* 4 FETCH (FLAGS () UID 4530)
* 5 FETCH (FLAGS () UID 4531)
* 6 FETCH (FLAGS () UID 4532)
* 7 FETCH (FLAGS () UID 4533)
* 8 FETCH (FLAGS () UID 4534)
* 9 FETCH (FLAGS () UID 4535)
* 10 FETCH (FLAGS () UID 4536)
* 11 FETCH (FLAGS () UID 4537)
* 12 FETCH (FLAGS () UID 4538)
* 13 FETCH (FLAGS () UID 4539)
* 14 FETCH (FLAGS () UID 4541)
* 15 FETCH (FLAGS () UID 4542)
* 16 FETCH (FLAGS (%Seen) UID 4617)
* 17 FETCH (FLAGS (%Seen) UID 4618)
* 18 FETCH (FLAGS (%Seen) UID 4629)
* 19 FETCH (FLAGS (%Seen) UID 4630)
* 20 FETCH (FLAGS (%Seen) UID 4631)
* 21 FETCH (FLAGS (%Seen) UID 4632)
* 22 FETCH (FLAGS (%Seen) UID 4633)
* 23 FETCH (FLAGS (%Seen) UID 4634)
* 24 FETCH (FLAGS (%Seen) UID 4635)
* 25 FETCH (FLAGS (%Seen) UID 4636)
* 26 FETCH (FLAGS (%Seen) UID 4637)
* 27 FETCH (FLAGS (%Seen) UID 4638)
* 28 FETCH (FLAGS (%Seen) UID 4639)
* 29 FETCH (FLAGS (%Seen) UID 4640)
* 30 FETCH (FLAGS (%Seen) UID 4641)
* 31 FETCH (FLAGS (%Seen) UID 4642)
* 32 FETCH (FLAGS (%Seen) UID 4643)
* 33 FETCH (FLAGS (%Seen) UID 4644)
* 34 FETCH (FLAGS (%Seen) UID 4645)
* 35 FETCH (FLAGS (%Seen) UID 4646)
* 36 FETCH (FLAGS (%Seen) UID 4647)
* 37 FETCH (FLAGS (%Seen) UID 4648)
* 38 FETCH (FLAGS (%Seen) UID 4649)
* 39 FETCH (FLAGS (%Seen) UID 4650)
* 40 FETCH (FLAGS (%Seen) UID 4651)
* 41 FETCH (FLAGS (%Seen) UID 4652)
* 42 FETCH (FLAGS (%Seen) UID 4653)
* 43 FETCH (FLAGS (%Seen) UID 4654)
* 44 FETCH (FLAGS (%Seen) UID 4655)
* 45 FETCH (FLAGS (%Seen) UID 4656)
* 46 FETCH (FLAGS (%Seen) UID 4657)
* 47 FETCH (FLAGS (%Seen) UID 4658)
* 48 FETCH (FLAGS (%Seen) UID 4659)
* 49 FETCH (FLAGS (%Seen) UID 4660)
* 50 FETCH (FLAGS (%Seen) UID 4661)
* 51 FETCH (FLAGS (%Seen) UID 4662)
* 52 FETCH (FLAGS (%Seen) UID 4663)
* 53 FETCH (FLAGS (%Seen) UID 4664)
* 54 FETCH (FLAGS (%Seen) UID 4665)
* 55 FETCH (FLAGS (%Seen) UID 4666)
* 56 FETCH (FLAGS (%Seen) UID 4667)
* 57 FETCH (FLAGS (%Seen) UID 4668)
* 58 FETCH (FLAGS (%Seen) UID 4669)
* 59 FETCH (FLAGS (%Seen) UID 4670)
* 60 FETCH (FLAGS (%Seen) UID 4671)
* 61 FETCH (FLAGS (%Seen) UID 4672)
* 62 FETCH (FLAGS (%Seen) UID 4673)
* 63 FETCH (FLAGS (%Seen) UID 4674)
* 64 FETCH (FLAGS (%Seen) UID 4675)
* 65 FETCH (FLAGS (%Seen) UID 4676)
* 66 FETCH (FLAGS (%Seen) UID 4677)
* 67 FETCH (FLAGS (%Seen) UID 4678)
* 68 FETCH (FLAGS (%Seen) UID 4679)
* 69 FETCH (FLAGS (%Seen) UID 4680)
* 70 FETCH (FLAGS (%Seen) UID 4681)
* 71 FETCH (FLAGS (%Seen) UID 4682)
* 72 FETCH (FLAGS (%Seen) UID 4683)
* 73 FETCH (FLAGS (%Seen) UID 4684)
* 74 FETCH (FLAGS (%Seen) UID 4685)
* 75 FETCH (FLAGS (%Seen) UID 4686)
* 76 FETCH (FLAGS (%Seen) UID 4687)
* 77 FETCH (FLAGS (%Seen) UID 4688)
* 78 FETCH (FLAGS (%Seen) UID 4689)
* 79 FETCH (FLAGS (%Seen) UID 4690)
* 80 FETCH (FLAGS (%Seen) UID 4691)
* 81 FETCH (FLAGS (%Seen) UID 4692)
* 82 FETCH (FLAGS (%Seen) UID 4693)
* 83 FETCH (FLAGS (%Seen) UID 4694)
* 84 FETCH (FLAGS (%Seen) UID 4695)
* 85 FETCH (FLAGS (%Seen) UID 4696)
* 86 FETCH (FLAGS (%Seen) UID 4697)
* 87 FETCH (FLAGS (%Seen) UID 4698)
* 88 FETCH (FLAGS (%Seen) UID 4699)
* 89 FETCH (FLAGS (%Seen) UID 4700)
* 90 FETCH (FLAGS (%Seen) UID 4701)
* 91 FETCH (FLAGS (%Seen) UID 4702)
* 92 FETCH (FLAGS (%Seen) UID 4703)
* 93 FETCH (FLAGS (%Seen) UID 4704)
* 94 FETCH (FLAGS () UID 4705)
* 95 FETCH (FLAGS () UID 4706)
* 96 FETCH (FLAGS () UID 4707)
* 97 FETCH (FLAGS (%Seen) UID 4708)
* 98 FETCH (FLAGS (%Seen) UID 4709)
* 99 FETCH (FLAGS (%Seen) UID 4710)
* 100 FETCH (FLAGS () UID 4711)
* 101 FETCH (FLAGS () UID 4712)
* 102 FETCH (FLAGS (%Seen) UID 4713)
* 103 FETCH (FLAGS (%Seen) UID 4714)
* 104 FETCH (FLAGS (%Seen) UID 4715)
* 105 FETCH (FLAGS () UID 4716)
* 106 FETCH (FLAGS () UID 4717)
75 OK FETCH completed.

Result of `G p' afterwards:

((modseq)
 (uidvalidity . "75981")
 (active 4504 . 4717)
 (permanent-flags %Seen %Answered %Flagged %Deleted %Draft $MDNSent)
 (total-expire . t)
 (imap-status . "4232 1 4231")) 

-- 
Michael Welsh Duggan
(md5i@md5i.com)



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

end of thread, other threads:[~2010-11-11 20:55 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-27 14:54 Wrong number of unread messages in imap group Michael Welsh Duggan
2010-10-29 23:11 ` Lars Magne Ingebrigtsen
2010-11-02 14:59   ` Michael Welsh Duggan
2010-11-04 19:58     ` Lars Magne Ingebrigtsen
2010-11-04 20:28       ` Michael Welsh Duggan
2010-11-04 20:34         ` Lars Magne Ingebrigtsen
2010-11-04 21:29           ` Michael Welsh Duggan
2010-11-04 21:35             ` Lars Magne Ingebrigtsen
2010-11-04 22:15               ` Michael Welsh Duggan
2010-11-04 22:54               ` Lars Magne Ingebrigtsen
2010-11-04 23:26                 ` Michael Welsh Duggan
2010-11-08 20:30                   ` Lars Magne Ingebrigtsen
2010-11-09  4:36                     ` Michael Welsh Duggan
2010-11-10 21:20                       ` Lars Magne Ingebrigtsen
2010-11-11 20:55                         ` Michael Welsh Duggan

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