From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#36714: 27.0.50; Gnus nnmaildir taking long time to recursively visit sub-Maildirs Date: Thu, 18 Jul 2019 12:00:25 -0700 Message-ID: <87sgr32mnq.fsf@ericabrahamsen.net> References: <86ftn37cvz.fsf@protected.rcdrun.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="216961"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 36714@debbugs.gnu.org To: Jean Louis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 18 21:01:10 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hoBeP-000uI1-B0 for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Jul 2019 21:01:09 +0200 Original-Received: from localhost ([::1]:40530 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hoBeO-0001bo-80 for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Jul 2019 15:01:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55705) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hoBeK-0001bR-KE for bug-gnu-emacs@gnu.org; Thu, 18 Jul 2019 15:01:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hoBeJ-0004hn-DD for bug-gnu-emacs@gnu.org; Thu, 18 Jul 2019 15:01:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45886) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hoBeI-0004hE-HA for bug-gnu-emacs@gnu.org; Thu, 18 Jul 2019 15:01:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hoBeI-0005NW-E2 for bug-gnu-emacs@gnu.org; Thu, 18 Jul 2019 15:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Jul 2019 19:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36714 X-GNU-PR-Package: emacs Original-Received: via spool by 36714-submit@debbugs.gnu.org id=B36714.156347643720629 (code B ref 36714); Thu, 18 Jul 2019 19:01:02 +0000 Original-Received: (at 36714) by debbugs.gnu.org; 18 Jul 2019 19:00:37 +0000 Original-Received: from localhost ([127.0.0.1]:54707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hoBdt-0005Mf-GN for submit@debbugs.gnu.org; Thu, 18 Jul 2019 15:00:37 -0400 Original-Received: from ericabrahamsen.net ([52.70.2.18]:55790 helo=mail.ericabrahamsen.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hoBdr-0005MR-Ox for 36714@debbugs.gnu.org; Thu, 18 Jul 2019 15:00:36 -0400 Original-Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id CC527FA42A; Thu, 18 Jul 2019 19:00:27 +0000 (UTC) In-Reply-To: <86ftn37cvz.fsf@protected.rcdrun.com> (Jean Louis's message of "Thu, 18 Jul 2019 14:20:16 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:163333 Archived-At: Jean Louis writes: > Hello, > > I am using Maildirs on my system. And I have 47682 various maildirs, > each belong to one email in the ordered way like: > > ~/Maildir/email1@example.com > ~/Maildir/email2@example.com > ~/Maildir/email3@example.com > ~/Maildir/email4@example.com > > and so on. > > Gnus offers nice interface and functions which I would like to use > while reading email. Even though I like MH-E and Rmail more, they both > do not offer Maildir support. > > I have made settings as following. > > '(gnus-secondary-select-methods > '((nnmaildir "" > (directory "/home/data1/protected/Maildir/")))) > > '(gnus-select-method '(nnimap "my.imap")) > > Now, I do not need to susbcribe to 47682 Maildirs at once, as under > ~/Maildir I have cur, new, tmp and that is the Maildir I would like to > read as only one. > > However, after setting the above, Gnus started doing something since > yesterday, and I still do not know what it is, it is maybe indexing or > setting up something, I do not know, process is still running for many > hours. > > I think that this is bug. > > What I think is that Gnus is now recursively visiting all Maildirs > instead of using just the main one. I think you're right, and in a sense it is definitely a bug, but a lot of people have run into this and I've seen some saying "there's not much to be done". So that didn't sound very encouraging. Could you do M-x toggle-debug-on-quit, start up Gnus, let it hang for a bit, then do "C-g" and post the resulting backtrace here? It's fairly obvious what's going on, but it would be good to see the specifics. The nnmaildir servers keep track of their directory modtime, which is both set and read only once, in `nnmaildir-request-scan'. So at least it should be fairly easy to see what's happening there. Gnus doesn't save the modtimes, though -- perhaps a potential solution could involve saving the maildir modtimes in newsrc.eld. > And my other question is, is there a way to quickly access > Maildir/email2@example.com by using Gnus? Some function maybe to just > write the email address or fetch it from database, and to open the > Maildir with nnmaildir? I'm not entirely sure what you mean here, but one suggestion I have is to create four different nnmaildir select methods, one for each of your email addresses. I think that's how Gnus is expecting this sort of thing to be set up, and it might make it easier for you to access, as well. Eric