info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Gnus wrong unread count with Gmail


From: Valentino Volonghi aka Dialtone
Subject: Gnus wrong unread count with Gmail
Date: Sat, 14 Mar 2009 04:07:45 -0700 (PDT)
User-agent: G2/1.0

Hi, I'm trying to use GNUS 5.13 (with Emacs 23) to view my mail under
Gmail but right now I have an issue with one of the imap mailboxes I
have under it.

Basically it's showing the wrong unread count together with removing
the mark for ticked mails from the group list. Basically right after
startup the group list is the following:

*        0: INBOX
...

Then I press 'M-g' on the INBOX and it becomes:

         3: INBOX

(note the missing *) Then I press 'g' again and it goes back to the
first result. I tried looking into *imap-log* and I think there is
something slightly off...

If I look at imap logs for the 'M-g' case I see the following:

517 NOOP
517 OK Success
518 UID SEARCH UNSEEN UNDELETED
* SEARCH 13979 13981 13982
518 OK SEARCH completed (Success)
519 UID SEARCH SEEN
* SEARCH <HERE A VERY LONG LIST OF IDS>
519 OK SEARCH completed (Success)
520 UID SEARCH FLAGGED
* SEARCH <HERE A VERY LONG LIST OF IDS>
520 OK SEARCH completed (Success)
521 UID SEARCH ANSWERED
* SEARCH <HERE A VERY LONG LIST OF IDS>
521 OK SEARCH completed (Success)
522 UID SEARCH RECENT
* SEARCH
522 OK SEARCH completed (Success)
523 UNSELECT
523 OK Returned to authenticated state. (Success)
524 EXAMINE "INBOX"
* FLAGS (\Answered \Flagged \Draft \Deleted \Seen)
* OK [PERMANENTFLAGS ()]
* OK [UIDVALIDITY 2]
* 8295 EXISTS
* 0 RECENT
* OK [UNSEEN 3]
* OK [UIDNEXT 13986]
524 OK [READ-ONLY] INBOX selected. (Success)
525 FETCH 1,* UID
* 1 FETCH (UID 14)
* 8295 FETCH (UID 13985)
525 OK Success
526 NOOP
526 OK Success
527 SELECT "INBOX"
* FLAGS (\Answered \Flagged \Draft \Deleted \Seen)
* OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen \*)]
* OK [UIDVALIDITY 2]
* 8295 EXISTS
* 0 RECENT
* OK [UNSEEN 3]
* OK [UIDNEXT 13986]
527 OK [READ-WRITE] INBOX selected. (Success)
528 STATUS "INBOX" (UNSEEN)
* STATUS "INBOX" (UNSEEN 3)
528 OK Success
529 EXPUNGE
529 OK Success

Answer to line 528 tells GNUS that there are 3 unseen messages and it
is correctly reported, there are also other places where UNSEEN 3 is
reported. If I see at the logs when I press 'g' however I see the
following:

528 OK Success
529 EXPUNGE
529 OK Success
530 NOOP
530 OK Success
531 NOOP
531 OK Success
532 NOOP
532 OK Success
533 UNSELECT
533 OK Returned to authenticated state. (Success)
534 STATUS "10noodles" (UIDVALIDITY UIDNEXT UNSEEN)
535 STATUS "Drafts" (UIDVALIDITY UIDNEXT UNSEEN)
536 STATUS "Drafts (Gmail)" (UIDVALIDITY UIDNEXT UNSEEN)
537 STATUS "Casetta" (UIDVALIDITY UIDNEXT UNSEEN)
538 STATUS "redis" (UIDVALIDITY UIDNEXT UNSEEN)
539 STATUS "erlang" (UIDVALIDITY UIDNEXT UNSEEN)
540 STATUS "Twisted-jabber" (UIDVALIDITY UIDNEXT UNSEEN)
541 STATUS "Twisted-commits" (UIDVALIDITY UIDNEXT UNSEEN)
542 STATUS "Twisted-Web" (UIDVALIDITY UIDNEXT UNSEEN)
543 STATUS "Twisted" (UIDVALIDITY UIDNEXT UNSEEN)
544 STATUS "Stacktrace" (UIDVALIDITY UIDNEXT UNSEEN)
545 STATUS "geek" (UIDVALIDITY UIDNEXT UNSEEN)
546 STATUS "pycon-organization" (UIDVALIDITY UIDNEXT UNSEEN)
547 STATUS "INBOX" (UIDVALIDITY UIDNEXT UNSEEN)
548 STATUS "5e1983" (UIDVALIDITY UIDNEXT UNSEEN)
549 STATUS "Divmod-dev" (UIDVALIDITY UIDNEXT UNSEEN)
550 STATUS "EuroPython" (UIDVALIDITY UIDNEXT UNSEEN)
551 STATUS "Python-Dev" (UIDVALIDITY UIDNEXT UNSEEN)
552 STATUS "Python-it" (UIDVALIDITY UIDNEXT UNSEEN)
553 STATUS "Sent Messages" (UIDVALIDITY UIDNEXT UNSEEN)
554 STATUS "calcolatrici" (UIDVALIDITY UIDNEXT UNSEEN)
555 STATUS "capistrano" (UIDVALIDITY UIDNEXT UNSEEN)
556 STATUS "disco" (UIDVALIDITY UIDNEXT UNSEEN)
557 STATUS "mercurial" (UIDVALIDITY UIDNEXT UNSEEN)
558 STATUS "py-lib" (UIDVALIDITY UIDNEXT UNSEEN)
559 STATUS "py3k" (UIDVALIDITY UIDNEXT UNSEEN)
560 STATUS "pycon-staff" (UIDVALIDITY UIDNEXT UNSEEN)
561 STATUS "pypy" (UIDVALIDITY UIDNEXT UNSEEN)
562 STATUS "rabbitmq" (UIDVALIDITY UIDNEXT UNSEEN)
563 STATUS "rest" (UIDVALIDITY UIDNEXT UNSEEN)
564 STATUS "tahoe-dev" (UIDVALIDITY UIDNEXT UNSEEN)
565 STATUS "textmate" (UIDVALIDITY UIDNEXT UNSEEN)
566 STATUS "tsf-sponsors" (UIDVALIDITY UIDNEXT UNSEEN)
567 STATUS "xp-it" (UIDVALIDITY UIDNEXT UNSEEN)
568 STATUS "xpug" (UIDVALIDITY UIDNEXT UNSEEN)
* STATUS "10noodles" (UIDNEXT 6 UIDVALIDITY 49 UNSEEN 0)
534 OK Success
* STATUS "Drafts" (UIDNEXT 20 UIDVALIDITY 65 UNSEEN 0)
535 OK Success
* STATUS "Drafts (Gmail)" (UIDNEXT 10167 UIDVALIDITY 85 UNSEEN 0)
536 OK Success
* STATUS "Casetta" (UIDNEXT 175 UIDVALIDITY 82 UNSEEN 0)
537 OK Success
* STATUS "redis" (UIDNEXT 88 UIDVALIDITY 92 UNSEEN 2)
538 OK Success
* STATUS "erlang" (UIDNEXT 5047 UIDVALIDITY 87 UNSEEN 14)
539 OK Success
* STATUS "Twisted-jabber" (UIDNEXT 66 UIDVALIDITY 83 UNSEEN 0)
540 OK Success
* STATUS "Twisted-commits" (UIDNEXT 5106 UIDVALIDITY 24 UNSEEN 0)
541 OK Success
* STATUS "Twisted-Web" (UIDNEXT 1141 UIDVALIDITY 8 UNSEEN 0)
542 OK Success
* STATUS "Twisted" (UIDNEXT 4089 UIDVALIDITY 7 UNSEEN 0)
543 OK Success
* STATUS "Stacktrace" (UIDNEXT 5131 UIDVALIDITY 67 UNSEEN 3)
544 OK Success
* STATUS "geek" (UIDNEXT 10473 UIDVALIDITY 40 UNSEEN 0)
545 OK Success
* STATUS "pycon-organization" (UIDNEXT 11061 UIDVALIDITY 42 UNSEEN 0)
546 OK Success
* STATUS "INBOX" (UIDNEXT 13986 UIDVALIDITY 2 UNSEEN 3)
547 OK Success
* STATUS "5e1983" (UIDNEXT 6 UIDVALIDITY 77 UNSEEN 0)
548 OK Success
* STATUS "Divmod-dev" (UIDNEXT 117 UIDVALIDITY 23 UNSEEN 0)
549 OK Success
* STATUS "EuroPython" (UIDNEXT 1424 UIDVALIDITY 13 UNSEEN 0)
550 OK Success
* STATUS "Python-Dev" (UIDNEXT 16197 UIDVALIDITY 6 UNSEEN 37)
551 OK Success
* STATUS "Python-it" (UIDNEXT 2269 UIDVALIDITY 71 UNSEEN 0)
552 OK Success
* STATUS "Sent Messages" (UIDNEXT 2 UIDVALIDITY 66 UNSEEN 0)
553 OK Success
* STATUS "calcolatrici" (UIDNEXT 534 UIDVALIDITY 11 UNSEEN 1)
554 OK Success
* STATUS "capistrano" (UIDNEXT 5367 UIDVALIDITY 50 UNSEEN 12)
555 OK Success
* STATUS "disco" (UIDNEXT 179 UIDVALIDITY 88 UNSEEN 1)
556 OK Success
* STATUS "mercurial" (UIDNEXT 7330 UIDVALIDITY 72 UNSEEN 41)
557 OK Success
* STATUS "py-lib" (UIDNEXT 188 UIDVALIDITY 76 UNSEEN 0)
558 OK Success
* STATUS "py3k" (UIDNEXT 2920 UIDVALIDITY 74 UNSEEN 0)
559 OK Success
* STATUS "pycon-staff" (UIDNEXT 4278 UIDVALIDITY 90 UNSEEN 8)
560 OK Success
* STATUS "pypy" (UIDNEXT 6731 UIDVALIDITY 73 UNSEEN 33)
561 OK Success
* STATUS "rabbitmq" (UIDNEXT 1658 UIDVALIDITY 89 UNSEEN 3)
562 OK Success
* STATUS "rest" (UIDNEXT 3940 UIDVALIDITY 48 UNSEEN 0)
563 OK Success
* STATUS "tahoe-dev" (UIDNEXT 864 UIDVALIDITY 86 UNSEEN 4)
564 OK Success
* STATUS "textmate" (UIDNEXT 3874 UIDVALIDITY 70 UNSEEN 22)
565 OK Success
* STATUS "tsf-sponsors" (UIDNEXT 68 UIDVALIDITY 84 UNSEEN 0)
566 OK Success
* STATUS "xp-it" (UIDNEXT 2265 UIDVALIDITY 64 UNSEEN 8)
567 OK Success
* STATUS "xpug" (UIDNEXT 1357 UIDVALIDITY 39 UNSEEN 0)
568 OK Success
569 EXAMINE "Drafts"
* FLAGS (\Answered \Flagged \Draft \Deleted \Seen)
* OK [PERMANENTFLAGS ()]
* OK [UIDVALIDITY 65]
* 0 EXISTS
* 0 RECENT
* OK [UNSEEN 0]
* OK [UIDNEXT 20]
569 OK [READ-ONLY] Drafts selected. (Success)
570 STATUS "Drafts" (UIDNEXT)
* STATUS "Drafts" (UIDNEXT 20)
570 OK Success
571 EXAMINE "INBOX"
* FLAGS (\Answered \Flagged \Draft \Deleted \Seen)
* OK [PERMANENTFLAGS ()]
* OK [UIDVALIDITY 2]
* 8295 EXISTS
* 0 RECENT
* OK [UNSEEN 3]
* OK [UIDNEXT 13986]
571 OK [READ-ONLY] INBOX selected. (Success)
572 FETCH 1,* UID
* 1 FETCH (UID 14)
* 8295 FETCH (UID 13985)
572 OK Success
573 STATUS "INBOX" (UIDNEXT)
* STATUS "INBOX" (UIDNEXT 13986)
573 OK Success

There are 3 IMAP accounts in this GNUS and all of them have a mailbox
named INBOX, 2 of those are empty, the excerpt above is from just the
gmail one. From these logs it appears to me that the server still
tells GNUS that there are 3 unseen messages. The main difference
between the 2 seems to be in this lines:

527 SELECT "INBOX"
* FLAGS (\Answered \Flagged \Draft \Deleted \Seen)
* OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen \*)]
* OK [UIDVALIDITY 2]
* 8295 EXISTS
* 0 RECENT
* OK [UNSEEN 3]
* OK [UIDNEXT 13986]
527 OK [READ-WRITE] INBOX selected. (Success)
528 STATUS "INBOX" (UNSEEN)
* STATUS "INBOX" (UNSEEN 3)

and

571 EXAMINE "INBOX"
* FLAGS (\Answered \Flagged \Draft \Deleted \Seen)
* OK [PERMANENTFLAGS ()]
* OK [UIDVALIDITY 2]
* 8295 EXISTS
* 0 RECENT
* OK [UNSEEN 3]
* OK [UIDNEXT 13986]
571 OK [READ-ONLY] INBOX selected. (Success)
572 FETCH 1,* UID
* 1 FETCH (UID 14)
* 8295 FETCH (UID 13985)
572 OK Success
573 STATUS "INBOX" (UIDNEXT)
* STATUS "INBOX" (UIDNEXT 13986)
573 OK Success

For some reason instead of asking STATUS "INBOX" (UNSEEN) it asks for
STATUS "INBOX" (UIDNEXT), considering that before it was answered that
* OK [UNSEEN 3] it shouldn't happen. What am I missing here?

Thanks for any answer.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]