From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/47448 Path: main.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.emacs.gnus.general Subject: Re: nnmaildir reports bogus number of articles Date: Mon, 28 Oct 2002 12:15:43 -0500 Organization: What did you have in mind? A short, blunt, human pyramid? Sender: owner-ding@hpc.uh.edu Message-ID: References: <87elad4fgj.fsf@xyzzy.adsl.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035825675 10029 80.91.224.249 (28 Oct 2002 17:21:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 28 Oct 2002 17:21:15 +0000 (UTC) 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 186DZg-0002bM-00 for ; Mon, 28 Oct 2002 18:21:13 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 186DV2-0004zr-00; Mon, 28 Oct 2002 11:16:24 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 28 Oct 2002 11:17:08 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id LAA07467 for ; Mon, 28 Oct 2002 11:16:50 -0600 (CST) Original-Received: (qmail 23513 invoked by alias); 28 Oct 2002 17:15:47 -0000 Original-Received: (qmail 23508 invoked from network); 28 Oct 2002 17:15:47 -0000 Original-Received: from multivac.student.cwru.edu (HELO multivac.cwru.edu) (@129.22.96.25) by gnus.org with SMTP; 28 Oct 2002 17:15:47 -0000 Original-Received: (qmail 26688 invoked by uid 500); 28 Oct 2002 17:16:05 -0000 Original-To: ding@gnus.org In-Reply-To: <87elad4fgj.fsf@xyzzy.adsl.dk> (Peter Makholm's message of "Sat, 26 Oct 2002 13:17:16 +0200") Mail-Copies-To: nobody Mail-Followup-To: ding@gnus.org Original-Lines: 45 User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:47448 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:47448 Peter Makholm wrote: > But gnus is reporting about 5000 unread messages each time i updates > and it says that there are about 7000 messages at total. This is at least partly the same old problem that other mail backends have always had, where Gnus ignores the number of messages reported by the backend, and overestimates based on the lowest and highest article numbers. There seems to be more to it in the nnmaildir case, but I'm not sure what the problem is yet. nnmaildir seems to be reporting the correct information to Gnus AFAICT. I found some code in Gnus that looks like it's incredibly buggy (see message ), but if it were, it would affect all backends and probably would have been fixed already, so I'm probably misunderstanding it. > brother@mac:~/Mail/nnmaildir/linux.kernel$ ls .nnmaildir/num/ | wc -l > 7171 That means the highest article number in this group is 7170. (Actually, the way nnmaildir determines that is by stat()ing ".../num/:", but that should give the same result.) > 7171 hardlinks to the same empty file with no information in the > filname I can find any use of nnmaildir allocates article numbers for new messages by making a link named according to the number it's trying to allocate. If that fails with EEXIST, then the article number is already in use; otherwise, the number we tried is now allocated. > All the other directories in .nnmaildir seems to have the same number > of files as the number of articles. Right. To ensure that we don't reuse article numbers, the num/* links aren't supposed to be deleted. Other files are deleted when an article expires. > Is there a known fix for this problem? Not yet. Josh Huber and I tried to debug it a while ago; see the thread called "nnmaildir has persistent article numbers", or something like that. paul