From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63385 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: nnimap not reporting correct number of unseen articles Date: Wed, 21 Jun 2006 09:52:43 +0200 Message-ID: <873bdz7xo4.fsf@latte.josefsson.org> References: <87sllz95zw.fsf@latte.josefsson.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1150876705 3666 80.91.229.2 (21 Jun 2006 07:58:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Jun 2006 07:58:25 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+m11912@lists.math.uh.edu Wed Jun 21 09:58:24 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FsxbP-0001cd-6z for ding-account@gmane.org; Wed, 21 Jun 2006 09:58:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1Fsxb9-00087D-00; Wed, 21 Jun 2006 02:58:03 -0500 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FsxW9-000875-00 for ding@lists.math.uh.edu; Wed, 21 Jun 2006 02:52:53 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FsxW6-0002FK-SV for ding@lists.math.uh.edu; Wed, 21 Jun 2006 02:52:53 -0500 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net ([217.13.230.178] helo=yxa.extundo.com) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FsxW3-00088e-00 for ; Wed, 21 Jun 2006 09:52:47 +0200 Original-Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id k5L7qhtA032562 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 21 Jun 2006 09:52:43 +0200 Original-To: joakim@verona.se OpenPGP: id=B565716F; url=http://josefsson.org/key.txt Mail-Copies-To: nobody X-Hashcash: 1:22:060621:ding@gnus.org::rQW2mgOcW5MlaGEl:B3yq X-Hashcash: 1:22:060621:joakim@verona.se::eSonS4Lxy3u6RHOz:VHy6 In-Reply-To: (joakim@verona.se's message of "Tue, 20 Jun 2006 19:33:23 +0200") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on yxa-iv X-Virus-Scanned: ClamAV version 0.88.2, clamav-milter version 0.88.2 on yxa.extundo.com X-Virus-Status: Clean X-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:63385 Archived-At: joakim@verona.se writes: > Simon Josefsson writes: > >> joakim@verona.se writes: >> >>> I do M-g on a group and see 6 new messages in the group. I enter the >>> greoup and there is only 1 new message really. Why is this? >> >> The unread message count is only an estimate. It works if the message >> UIDs are assigned continuously, and no article has been removed, but >> there are no guarantees that this holds. It just happen to hold for >> some common IMAP servers. >> >> I think we had some code to make the guess better, but apparently it >> can still fail. > > Do you have a pointer where I could look in the code, so that maybe I > could improve the guess for Dovecot? The code that does the dirty work is gnus-fixup-nnimap-unread-after-getting-new-news, nnimap-update-unseen and nnimap-retrieve-groups. You'll have to make sure g-f-n-u-a-g-n-n knows the correct information somehow.