From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67407 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus and imap Date: Sun, 21 Sep 2008 11:57:22 +0200 Message-ID: <87r67d3jp9.fsf@randomsample.de> References: <877iabwtjx.fsf@randomsample.de> <87abf51c4m.fsf@marauder.physik.uni-ulm.de> <874p5dm35l.fsf@randomsample.de> <87iqttq7ja.fsf@randomsample.de> <87d4k0t7ga.fsf@randomsample.de> <87myj3wzp7.fsf@randomsample.de> <87y72mn2sy.fsf@randomsample.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1221991174 18023 80.91.229.12 (21 Sep 2008 09:59:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Sep 2008 09:59:34 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M15858@lists.math.uh.edu Sun Sep 21 12:00:31 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1KhLj6-0003T8-0G for ding-account@gmane.org; Sun, 21 Sep 2008 11:59:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1KhLhB-0005Jl-G4; Sun, 21 Sep 2008 04:57:37 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1KhLh8-0005JR-N4 for ding@lists.math.uh.edu; Sun, 21 Sep 2008 04:57:34 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1KhLh4-0005jJ-9l for ding@lists.math.uh.edu; Sun, 21 Sep 2008 04:57:34 -0500 Original-Received: from m61s02.vlinux.de ([83.151.21.164]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1KhLh8-00040g-00 for ; Sun, 21 Sep 2008 11:57:34 +0200 Original-Received: from dslb-082-083-052-214.pools.arcor-ip.net ([82.83.52.214] helo=honk) by m61s02.vlinux.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1KhLhL-0004H0-M2 for ding@gnus.org; Sun, 21 Sep 2008 11:57:48 +0200 Mail-Copies-To: never Mail-Followup-To: ding@gnus.org In-Reply-To: (David Engster's message of "Wed, 03 Sep 2008 13:55:24 +0200") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.3 (gnu/linux) X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67407 Archived-At: > Vitaly Mayatskikh writes: >> Right, I have subscribed to all groups through >> gnus-group-browse-foreign-server. I've fixed nnimap-retrieve-groups and >> gnus-active-to-gnus-format (it was called by gnus-read-active-file-2). I've finally come to test your patches. Sorry for the delay. I'm still sometimes encountering wrong article counts upon entering a group. This happens when I delete articles in a group and enter it without a rescan. The group will then show an unread count which is usually equal to the number of deleted articles. This gets reset to zero when you exit the group, so you can only see that with a three-pane view, where the group buffer is always visible. However, this is only indirectly a consequence of your patches. The problem seems to be that when you delete some articles in a group, the active information does not get updated in the hash table, so that (gnus-range-difference active range) will return a range containing the deleted articles. This is all fixable, of course. However, before continuing with this approach, I'd still like to suggest using a new backend function instead of storing the number of available articles numbers in the active-hashtb. The latter implies that we would have to check the whole Gnus trunk for regressions regarding usage of the active-hashtb, which will be a lot of work. I think that using something like nnimap-request-group-articles and leaving the active-hashtb as it is would be easier to do in the long term. If you (or others) don't object, I could try to change your patches using that new backend function. Best, David