GNU bug report logs - #21258
nnmaildir and subdirectories

Previous Next

Packages: gnus, emacs;

Reported by: Glenn Morris <rgm <at> gnu.org>

Date: Fri, 14 Aug 2015 18:53:02 UTC

Severity: wishlist

To reply to this bug, email your comments to 21258 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bugs <at> gnus.org:
bug#21258; Package gnus. (Fri, 14 Aug 2015 18:53:02 GMT) Full text and rfc822 format available.

Message #3 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: submit <at> debbugs.gnu.org
Subject: nnmaildir and subdirectories
Date: Fri, 14 Aug 2015 14:52:10 -0400
Package: gnus
Version: 5.13

Using the gnus that comes with Emacs 24.5, I set:

(setq gnus-secondary-select-methods
      '((nnmaildir "" (directory "/path/to/Maildir"))))

where the contents of Maildir/ look like:

folder1/{cur,new,tmp}
folder2/{cur,new,tmp}
folder3/subfolder4/{cur,new,tmp}
folder3/subfolder5/{cur,new,tmp}

Gnus correctly presents mail from folder1 and folder2.
folder3 shows up as an empty group with no messages that can't be entered.
subfolder4 and subfolder5 aren't detected at all.

I suppose I can fudge it by

1) using symlinks at the top-level, eg
folder3-subfolder4 -> folder3/subfolder4

2) tweaking nnmaildir's directory-files parameter so that directories
like "folder3" that only contain subfolders aren't presented as groups.

But it would be nice if Gnus just handled subdirectories out-of-the-box.




Information forwarded to bugs <at> gnus.org:
bug#21258; Package gnus. (Thu, 26 Jan 2017 21:19:02 GMT) Full text and rfc822 format available.

Message #6 received at 21258 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 21258 <at> debbugs.gnu.org
Subject: Re: bug#21258: nnmaildir and subdirectories
Date: Thu, 26 Jan 2017 22:17:50 +0100
Glenn Morris <rgm <at> gnu.org> writes:

> I suppose I can fudge it by
>
> 1) using symlinks at the top-level, eg
> folder3-subfolder4 -> folder3/subfolder4
>
> 2) tweaking nnmaildir's directory-files parameter so that directories
> like "folder3" that only contain subfolders aren't presented as groups.
>
> But it would be nice if Gnus just handled subdirectories out-of-the-box.

I'm not familiar with the nnmaildir code at all, but wouldn't nnmaildir
have to stat a whole lot of files if it were to find all possible
directories?  And "maildir" is a specific format specified by
maildir(5).  (Which I haven't read, either.  :-))

So my guess is that this wouldn't be a good idea.  It sounds like you
want nnmh or nnml, not nnmaildir, really...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug reassigned from package 'gnus' to 'emacs,gnus'. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 26 Jan 2017 21:19:02 GMT) Full text and rfc822 format available.

bug No longer marked as found in versions 5.13. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 26 Jan 2017 21:19:02 GMT) Full text and rfc822 format available.

Severity set to 'wishlist' from 'normal' Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 26 Jan 2017 21:19:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#21258; Package emacs,gnus. (Mon, 30 Jan 2017 22:39:02 GMT) Full text and rfc822 format available.

Message #15 received at 21258 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 21258 <at> debbugs.gnu.org
Subject: Re: bug#21258: nnmaildir and subdirectories
Date: Mon, 30 Jan 2017 17:37:54 -0500
Lars Ingebrigtsen wrote:

>> But it would be nice if Gnus just handled subdirectories out-of-the-box.
>
> I'm not familiar with the nnmaildir code at all, but wouldn't nnmaildir
> have to stat a whole lot of files if it were to find all possible
> directories?

I don't see why it should make a big difference to the performance, but
if there's no-one who wants to work on Maildir, it's all theoretical.

> So my guess is that this wouldn't be a good idea.  It sounds like you
> want nnmh or nnml, not nnmaildir, really...

I need Maildir because it is a standard format used by offlineimap,
mbsync, mu4e, etc. Some other (Gnus-specific?) format isn't an option.




This bug report was last modified 8 years and 137 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.