From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/52816 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 12:42:19 +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 1053773003 3871 80.91.224.249 (24 May 2003 10:43:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 24 May 2003 10:43:23 +0000 (UTC) Original-X-From: ding-owner+M1360@lists.math.uh.edu Sat May 24 12:43:22 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 19JWUj-00010J-00 for ; Sat, 24 May 2003 12:43:21 +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 19JWU5-0003Ci-00; Sat, 24 May 2003 05:42:41 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19JWTv-0003Cc-00 for ding@lists.math.uh.edu; Sat, 24 May 2003 05:42:32 -0500 Original-Received: (qmail 33857 invoked by alias); 24 May 2003 10:42:31 -0000 Original-Received: (qmail 33852 invoked from network); 24 May 2003 10:42:31 -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 10:42:31 -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 h4OAgJB4006773 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Sat, 24 May 2003 12:42:25 +0200 Original-To: Ding Mailing List Mail-Copies-To: nobody X-Payment: hashcash 1.2 0:030524:ding@gnus.org:e75de41e492241e1 X-Hashcash: 0:030524:ding@gnus.org:e75de41e492241e1 In-Reply-To: <4nllwxsg1j.fsf@lockgroove.bwh.harvard.edu> (Ted Zlatanov's message of "Fri, 23 May 2003 13:56:24 -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:52816 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:52816 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?