From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/46715 Path: main.gmane.org!not-for-mail From: Josh Huber Newsgroups: gmane.emacs.gnus.general Subject: Re: nnmaildir now has persistent article numbers Date: Tue, 24 Sep 2002 18:32:08 -0400 Sender: owner-ding@hpc.uh.edu Message-ID: <87n0q7m32v.fsf@mail.paradoxical.net> References: <873cs0v7b1.fsf@mail.paradoxical.net> <871y7jb80d.fsf@mail.paradoxical.net> <87wupb9m9h.fsf@mail.paradoxical.net> <87znu7m8du.fsf@mail.paradoxical.net> Reply-To: Josh Huber NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1032906832 11722 127.0.0.1 (24 Sep 2002 22:33:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 24 Sep 2002 22:33:52 +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 17tyFa-00032w-00 for ; Wed, 25 Sep 2002 00:33:50 +0200 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 17tyEI-0000sM-00; Tue, 24 Sep 2002 17:32:30 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 24 Sep 2002 17:33:10 -0500 (CDT) 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 RAA11837 for ; Tue, 24 Sep 2002 17:32:56 -0500 (CDT) Original-Received: (qmail 12878 invoked by alias); 24 Sep 2002 22:32:10 -0000 Original-Received: (qmail 12873 invoked from network); 24 Sep 2002 22:32:10 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by gnus.org with SMTP; 24 Sep 2002 22:32:10 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 17tyun-0006Dv-00 for ; Wed, 25 Sep 2002 01:16:25 +0200 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 65 Original-NNTP-Posting-Host: paradoxical.net Original-X-Trace: quimby.gnus.org 1032909385 23792 66.92.73.76 (24 Sep 2002 23:16:25 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 24 Sep 2002 23:16:25 GMT Mail-Followup-To: ding@gnus.org Mail-Copies-To: nobody User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Honest Recruiter, i686-pc-linux) Cancel-Lock: sha1:OD1HCunEFUBfclPIbWAlKk8YxGQ= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:46715 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:46715 prj@po.cwru.edu (Paul Jarc) writes: > Assuming we're working with the group "ding" on the (nnmaildir "" ...) > server, this will tell you which article numbers exist in the group: > (let* ((group (nnmaildir--prepare "" "ding")) > (nlist (nnmaildir--grp-nlist group)) > (articles-descending (mapcar 'car nlist)) > (articles-ascending (reverse articles-descending)) > (ranges (gnus-compress-sequence articles-ascending 'always-list))) > ranges) > > If (> (length ranges) 1), then you have holes. Count how many > articles are missing and see if that matches the number of extra > articles reported in the group buffer. I used this to get a list of all nnmaildir group ranges: (defun show-nnmaildir-ranges () (mapc '(lambda (item) (let ((grp (car item))) (when (string-match "^nnmaildir:\\(.*\\)" grp) (let* ((group (nnmaildir--prepare "" (match-string 1 grp))) (nlist (nnmaildir--grp-nlist group)) (articles-descending (mapcar 'car nlist)) (articles-ascending (reverse articles-descending)) (ranges (gnus-compress-sequence articles-ascending 'always-list))) (insert (format "%s: %s\n" grp ranges)))))) gnus-newsrc-alist)) Here is a (trimmed) list of the output when run on my machine: nnmaildir:mail.inbox.debian: ((1 . 11)) nnmaildir:mail.inbox.main: ((1 . 400)) nnmaildir:mail.inbox.mclx: ((1 . 2)) nnmaildir:sent-mail: ((1 . 582)) nnmaildir:sent-news: ((1 . 80)) nnmaildir:mail.lists.debian-kerberos: ((1 . 7)) nnmaildir:mail.lists.debian.private: ((41 . 340) (342 . 358)) nnmaildir:mail.lists.vr6: ((11 . 28)) nnmaildir:mail.lists.monadlug: ((1 . 5)) nnmaildir:mail.lists.gnupg: ((19 . 131)) nnmaildir:mail.lists.wlug: ((5 . 41)) nnmaildir:mail.lists.ruby-talk: (1 (109 . 833)) nnmaildir:mail.lists.tmda-users: ((20 . 80)) nnmaildir:mail.lists.tmda-workers: ((20 . 41)) nnmaildir:mail.lists.debian.security: ((1 . 6)) nnmaildir:mail.lists.openafs-devel: ((1 . 24)) Many of these are reporting incorrect new mail when there is none. For example, when I fire up gnus for the first time, it always tells me there are 2 new messages in mail.inbox.debian and 3 new messages in mail.inbox.main, when in fact there are no new messages in either of these folders... Is there anything else I can do to further debug this problem? Oh, and here's an odd one, the unread message count is greater than the total: 23/ 18[0]: nnmaildir:mail.lists.vr6 -- Josh Huber