Gnus development mailing list
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: ding@gnus.org
Subject: Re: Performance problem of imap move
Date: Wed, 28 Jan 2015 12:10:10 +0800	[thread overview]
Message-ID: <87bnljsfz1.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87fvavsg2i.fsf@ericabrahamsen.net>

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> Lars Ingebrigtsen <larsi@gnus.org> writes:
>>
>>> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>>>
>>>> A local dovecot server, synced with gmail via isync.
>>>
>>> Ah.  For some reason, it seems that people running local IMAP servers
>>> triggers a lot of bugs in Gnus...
>>>
>>>> I've always meant to go and follow the code, but it's never been
>>>> annoying enough for me to actually do it. But if you're messing nnimap
>>>> at the moment anyway, maybe now's a good time.
>>>
>>> Please do.  :-)
>>
>> Doing this bit by bit, first of all here are the imap commands resulting
>> from moving article 39339 from INBOX to [Gmail].Trash, where it became
>> article 175. Upon leaving the INBOX group, [Gmail].Trash was marked as
>> containing 36 unread articles, when in fact it had none -- refreshing
>> Gnus reset the unread count to the proper value. Stepping through
>> `gnus-summary-move-article' and `nnimap-request-move-article' didn't
>> show anything immediately out of the ordinary, but I don't really
>> understand imap all that well.
>>
>> In a bit, I'll try it again and step through `nnimap-request-set-mark'.
>> That's what's being used to update marks on [Gmail].Trash, and seems
>> like the next most likely place to find bugs. Like I said, though, I
>> don't know imap all that well, so someone tell me if I should be looking
>> elsewhere.
>
> A little progress: `nnimap-request-set-mark' also looked normal, so I
> followed the `gnus-group-get-new-news-this-group' call at the end of
> `gnus-summary-move-article' instead.
>
> In the `let' in the middle of that (gnus-group.el:4081 in current Gnus),
> we call both `gnus-get-info' and `gnus-active' on the "group" variable.
> The return value of `gnus-get-info' indicates a "seen" range of (1 .
> 177), which is correct. The return value of `gnus-active' is (1 . 211),
> which isn't correct, and leads to the bogus unread count.
>
> Off to look at what's happening in `gnus-active'...

Ugh, it looks at gnus-active-hashtb. I think this is where I pass the
baton to someone else.




  reply	other threads:[~2015-01-28  4:10 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-06 19:06 Mickaël Rémond
2015-01-21 14:11 ` Mickaël Rémond
2015-01-25  4:57   ` Lars Ingebrigtsen
2015-01-26  2:52     ` Lars Ingebrigtsen
2015-01-26 12:11       ` Tassilo Horn
2015-01-26 16:55         ` Steinar Bang
2015-01-27  0:54         ` Lars Ingebrigtsen
2015-01-27  7:23           ` Tassilo Horn
2015-01-27  7:28             ` Tassilo Horn
2015-01-27  7:30             ` Lars Ingebrigtsen
2015-01-27  8:01               ` Tassilo Horn
2015-01-27  8:05                 ` Tassilo Horn
2015-01-28  0:45                   ` Lars Ingebrigtsen
2015-01-27  3:46         ` Eric Abrahamsen
2015-01-27  4:48           ` Lars Ingebrigtsen
2015-01-27  5:02             ` Eric Abrahamsen
2015-01-27  5:09               ` Lars Ingebrigtsen
2015-01-27 14:41                 ` Steinar Bang
2015-01-28  2:06                   ` Dave Goldberg
2015-01-29  5:11                     ` Dave Goldberg
2015-01-28  2:29                 ` Eric Abrahamsen
2015-01-28  4:08                   ` Eric Abrahamsen
2015-01-28  4:10                     ` Eric Abrahamsen [this message]
2015-01-28  4:32                       ` Eric Abrahamsen
2015-01-28  5:08                         ` Lars Ingebrigtsen
2015-01-28  5:13                           ` Lars Ingebrigtsen
2015-01-28  5:52                             ` Eric Abrahamsen
2015-01-28 14:22                             ` Tassilo Horn
2015-01-29  1:08                               ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bnljsfz1.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).