From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/27099 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: nnml still tries to find a mail-source for every group Date: 20 Nov 1999 00:35:03 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1035164186 22877 80.91.224.250 (21 Oct 2002 01:36:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:36:26 +0000 (UTC) Return-Path: Original-Received: from bart.math.uh.edu (bart.math.uh.edu [129.7.128.48]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id SAA21652 for ; Fri, 19 Nov 1999 18:35:53 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by bart.math.uh.edu (8.9.1/8.9.1) with ESMTP id RAB10743; Fri, 19 Nov 1999 17:35:33 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 19 Nov 1999 17:35:46 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id RAA11806 for ; Fri, 19 Nov 1999 17:35:35 -0600 (CST) Original-Received: from badis.pdc.kth.se (root@badis.pdc.kth.se [130.237.221.45]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id SAA21637 for ; Fri, 19 Nov 1999 18:35:07 -0500 (EST) Original-Received: (from jas@localhost) by badis.pdc.kth.se (8.9.3/8.9.3) id AAA24153; Sat, 20 Nov 1999 00:35:05 +0100 Original-To: ding@gnus.org In-Reply-To: dsg@mitre.org's message of "18 Nov 1999 15:34:35 -0500" Original-Lines: 54 User-Agent: Gnus/5.070099 (Pterodactyl Gnus v0.99) Emacs/20.4.91 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:27099 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:27099 --=-=-= David S. Goldberg writes: > OK, since everyone else seems to think this is now fixed (and it is > for me for nnimap), why is it that if I run gnus-no-server, or do a > g in the *Group* buffer after running gnus that all my level > 2 groups get one of the > > nnml: Reading incoming mail from directory... > nnml: Reading incoming mail (no new mail)...done > > pairs of lines. This is because `nnml' doesn't support `nnml-retrieve-groups' so the code I added which make partial mail checking fast for nnimap isn't used for nnml. Gnus will then scan the backend of each of your nnml groups on level 2 or lower. This patch try to make sure methods are only scanned once. I haven't tested it, please try it and tell us if it works. 1999-11-20 Simon Josefsson * gnus-start.el (gnus-get-unread-articles): Scan each method only once. --=-=-= Index: gnus-start.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/gnus-start.el,v retrieving revision 5.40 diff -w -u -u -w -r5.40 gnus-start.el --- gnus-start.el 1999/11/17 00:30:44 5.40 +++ gnus-start.el 1999/11/19 23:32:36 @@ -1498,7 +1498,7 @@ gnus-activate-foreign-newsgroups) (t 0)) level)) - info group active method retrievegroups) + scanned-methods info group active method retrievegroups) (gnus-message 5 "Checking new news...") (while newsrc @@ -1542,7 +1542,10 @@ (setcdr (assoc method retrievegroups) (cons group (cdr (assoc method retrievegroups)))) (push (list method group) retrievegroups)) + (if (member method scanned-methods) + (setq active (gnus-activate-group group)) (setq active (gnus-activate-group group 'scan)) + (push method scanned-methods)) (inline (gnus-close-group group)))))) ;; Get the number of unread articles in the group. --=-=-=--