From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/52825 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: bug in gnus-fixup-nnimap-unread-after-getting-new-news? Date: Sat, 24 May 2003 16:13:14 +0200 Sender: ding-owner@lists.math.uh.edu Message-ID: References: <4nllwxsg1j.fsf@lockgroove.bwh.harvard.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1053785497 2266 80.91.224.249 (24 May 2003 14:11:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 24 May 2003 14:11:37 +0000 (UTC) Original-X-From: ding-owner+M1369@lists.math.uh.edu Sat May 24 16:11:34 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19JZkE-0000aI-00 for ; Sat, 24 May 2003 16:11:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19JZm3-0004An-00; Sat, 24 May 2003 09:13:27 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19JZly-0004Ai-00 for ding@lists.math.uh.edu; Sat, 24 May 2003 09:13:22 -0500 Original-Received: (qmail 43976 invoked by alias); 24 May 2003 14:13:22 -0000 Original-Received: (qmail 43971 invoked from network); 24 May 2003 14:13:21 -0000 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net (HELO yxa.extundo.com) (217.13.230.178) by sclp3.sclp.com with SMTP; 24 May 2003 14:13:21 -0000 Original-Received: from latte-wlan.josefsson.org (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.9/8.12.9) with ESMTP id h4OEDGB4010096 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Sat, 24 May 2003 16:13:19 +0200 Original-To: Ding Mailing List Mail-Copies-To: nobody X-Payment: hashcash 1.2 0:030524:ding@gnus.org:ee2da1fc307b2496 X-Hashcash: 0:030524:ding@gnus.org:ee2da1fc307b2496 In-Reply-To: (Ted Zlatanov's message of "Sat, 24 May 2003 07:04:16 -0400") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:52825 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:52825 Ted Zlatanov writes: > On Sat, 24 May 2003, jas@extundo.com wrote: >> Ted Zlatanov writes: >> >>> When the function gnus-fixup-nnimap-unread-after-getting-new-news >>> gets run by the gnus-after-getting-new-news-hook, the unread counts >>> are wrong for me. For instance, "spam" (nnml backend) will get the >>> same amount of unread messages as "nnimap+mail.lifelogs.com:mail" >>> (nnimap backend). Looking at the >>> gnus-fixup-nnimap-unread-after-getting-new-news function, it >>> appears to me that it uses the mailbox name as known to nnimap >>> internally, which would only be correct if the nnimap server was >>> the primary server. >>> >>> Furthermore, the function seems to use nnimap-mailbox-info, which >>> is applicable only to the current IMAP server, so probably there >>> will be issues with multiple IMAP servers as well. Please let me >>> know if I'm mistaken about this, so I can look elsewhere. >> >> I think you are right. Maybe it is time to implement Kai's >> suggestion of a new backend API to support this function properly? > > I'll help if I can, I don't know the backend APIs that well though. > > In the meanwhile, should we disable > gnus-fixup-nnimap-unread-after-getting-new-news? I'm currently > defaliasing it to 'ignore, but others may be seeing the same bug. I > have not seen any bad effects from disabling it in my setup. Looking closer at the problem, I see that at least my nnimap-mailbox-info contains fully qualified group names. So I don't see how it would fail, it iterates over all fully qualified names and update the info for each of those groups. Perhaps you could edebug the function to see where and why it overwrites non-nnimap group info? What's your value of nnimap-mailbox-info?