GNU bug report logs - #73470
Rmail is not working with maildirs

Previous Next

Package: emacs;

Reported by: Marc Coquand <marc <at> mccd.space>

Date: Wed, 25 Sep 2024 12:41:01 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 73470 in the body.
You can then email your comments to 73470 AT debbugs.gnu.org in the normal way.

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

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


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#73470; Package emacs. (Wed, 25 Sep 2024 12:41:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Marc Coquand <marc <at> mccd.space>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 25 Sep 2024 12:41:02 GMT) Full text and rfc822 format available.

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

From: Marc Coquand <marc <at> mccd.space>
To: bug-gnu-emacs <at> gnu.org
Subject: Rmail is not working with maildirs
Date: Wed, 25 Sep 2024 15:20:51 +0300
I noticed that according to the documentation, rmail should work with
maildirs, assuming you have movemail installed.
 
I made sure GNU movemail is installed and tried setting my maildir using
set-rmail-inbox-list command. I set it to maildir://~/my-mail, which is
the folder where my mail is stored. It loads without issue on other
mail clients.
 
However, with rmail I get the error when fetching the mail saying "No
mail.". I would expect it to load my email.

The maildirs were created with isync. 




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#73470; Package emacs. (Wed, 25 Sep 2024 15:51:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Marc Coquand <marc <at> mccd.space>
Cc: 73470 <at> debbugs.gnu.org
Subject: Re: bug#73470: Rmail is not working with maildirs
Date: Wed, 25 Sep 2024 18:49:49 +0300
> From: Marc Coquand <marc <at> mccd.space>
> Date: Wed, 25 Sep 2024 15:20:51 +0300
> 
> I noticed that according to the documentation, rmail should work with
> maildirs, assuming you have movemail installed.
>  
> I made sure GNU movemail is installed and tried setting my maildir using
> set-rmail-inbox-list command. I set it to maildir://~/my-mail, which is
> the folder where my mail is stored. It loads without issue on other
> mail clients.
>  
> However, with rmail I get the error when fetching the mail saying "No
> mail.". I would expect it to load my email.

What happens if you expand "~" in "~/my-mail" and set the inbox to the
result?  For example, if "~/my-mail" expands to "/home/user/my-mail",
try using "maildir:///home/user/my-mail", per the documentation in the
node "Movemail" of the Emacs user manual.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#73470; Package emacs. (Thu, 26 Sep 2024 14:23:02 GMT) Full text and rfc822 format available.

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

From: Marc Coquand <marc <at> mccd.space>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 73470 <at> debbugs.gnu.org
Subject: Re: bug#73470: Rmail is not working with maildirs
Date: Thu, 26 Sep 2024 17:17:05 +0300
I installed movemail via nix. Running the commands yielded:

~ $ which movemail
/home/me/.nix-profile/bin/movemail

~ $ movemail
movemail: wrong number of arguments

~ $ movemail --version
movemail (GNU Mailutils) 3.17

I also tried explicitly setting the variable rmail-movemail-program to
/home/me/.nix-profile/bin/movemail with no success. 

Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Marc Coquand <marc <at> mccd.space>
>> Date: Thu, 26 Sep 2024 15:36:28 +0300
>> 
>> Hi Eli,
>> 
>> So I tried setting the following
>> 
>> (setq rmail-primary-inbox-list '("maildir:///home/me/mail/home"))
>> 
>> I can see that in ~/mail/home there exists a cur,new and tmp directory
>> as well as all other mail folders.
>> 
>> I also tried the following, since I have one mail directory for work and
>> one personal:
>> 
>> (setq rmail-primary-inbox-list '("maildir:///home/me/mail/"))
>> 
>> Neither worked.
>> 
>> M-x version returns GNU Emacs 29.4 (build 2, x86_64-unknown-linux-gnu, X
>> toolkit, cairo version 1.18.0) of 2024-06-25
>
> Are you sure you are using movemail from GNU Mailutils?  What do the
> following shell commands produce?
>
>  $ which movemail
>  $ movemail





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#73470; Package emacs. (Thu, 26 Sep 2024 14:29:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Marc Coquand <marc <at> mccd.space>
Cc: 73470 <at> debbugs.gnu.org
Subject: Re: bug#73470: Rmail is not working with maildirs
Date: Thu, 26 Sep 2024 17:03:50 +0300
[Please use Reply All to reply, to have the bug tracker on the CC list.]

> From: Marc Coquand <marc <at> mccd.space>
> Date: Thu, 26 Sep 2024 15:36:28 +0300
> 
> Hi Eli,
> 
> So I tried setting the following
> 
> (setq rmail-primary-inbox-list '("maildir:///home/me/mail/home"))
> 
> I can see that in ~/mail/home there exists a cur,new and tmp directory
> as well as all other mail folders.
> 
> I also tried the following, since I have one mail directory for work and
> one personal:
> 
> (setq rmail-primary-inbox-list '("maildir:///home/me/mail/"))
> 
> Neither worked.
> 
> M-x version returns GNU Emacs 29.4 (build 2, x86_64-unknown-linux-gnu, X
> toolkit, cairo version 1.18.0) of 2024-06-25

Are you sure you are using movemail from GNU Mailutils?  What do the
following shell commands produce?

 $ which movemail
 $ movemail





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#73470; Package emacs. (Thu, 26 Sep 2024 14:30:03 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Marc Coquand <marc <at> mccd.space>
Cc: 73470 <at> debbugs.gnu.org
Subject: Re: bug#73470: Rmail is not working with maildirs
Date: Thu, 26 Sep 2024 17:28:27 +0300
> From: Marc Coquand <marc <at> mccd.space>
> Cc: 73470 <at> debbugs.gnu.org
> Date: Thu, 26 Sep 2024 17:17:05 +0300
> 
> 
> I installed movemail via nix. Running the commands yielded:
> 
> ~ $ which movemail
> /home/me/.nix-profile/bin/movemail
> 
> ~ $ movemail
> movemail: wrong number of arguments
> 
> ~ $ movemail --version
> movemail (GNU Mailutils) 3.17

OK, so now please tell what is "/home/me/mail/home".  Is it a file or
a directory?  If it's a directory, please show its contents.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#73470; Package emacs. (Thu, 26 Sep 2024 14:47:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: marc <at> mccd.space
Cc: 73470 <at> debbugs.gnu.org
Subject: Re: bug#73470: Rmail is not working with maildirs
Date: Thu, 26 Sep 2024 17:45:15 +0300
> Cc: 73470 <at> debbugs.gnu.org
> Date: Thu, 26 Sep 2024 17:28:27 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> 
> > From: Marc Coquand <marc <at> mccd.space>
> > Cc: 73470 <at> debbugs.gnu.org
> > Date: Thu, 26 Sep 2024 17:17:05 +0300
> > 
> > 
> > I installed movemail via nix. Running the commands yielded:
> > 
> > ~ $ which movemail
> > /home/me/.nix-profile/bin/movemail
> > 
> > ~ $ movemail
> > movemail: wrong number of arguments
> > 
> > ~ $ movemail --version
> > movemail (GNU Mailutils) 3.17
> 
> OK, so now please tell what is "/home/me/mail/home".  Is it a file or
> a directory?  If it's a directory, please show its contents.

Ans also, what are the values of rmail-movemail-program and
rmail-movemail-variant-in-use inside Emacs, after you load the Rmail
library.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#73470; Package emacs. (Fri, 27 Sep 2024 15:21:02 GMT) Full text and rfc822 format available.

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

From: Marc Coquand <marc <at> mccd.space>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 73470 <at> debbugs.gnu.org
Subject: Re: bug#73470: Rmail is not working with maildirs
Date: Fri, 27 Sep 2024 18:15:46 +0300
So /mail/home is a directory and the contents are maildir content. There
is an INBOX file, cur, new, tmp and directories like Archive,
Spam, Trash etc.

rmail-movemail-program is .nix-profile/bin/movemail. The second variable
I can not find, even after opening rmail.

Eli Zaretskii <eliz <at> gnu.org> writes:

>> Cc: 73470 <at> debbugs.gnu.org
>> Date: Thu, 26 Sep 2024 17:28:27 +0300
>> From: Eli Zaretskii <eliz <at> gnu.org>
>> 
>> > From: Marc Coquand <marc <at> mccd.space>
>> > Cc: 73470 <at> debbugs.gnu.org
>> > Date: Thu, 26 Sep 2024 17:17:05 +0300
>> > 
>> > 
>> > I installed movemail via nix. Running the commands yielded:
>> > 
>> > ~ $ which movemail
>> > /home/me/.nix-profile/bin/movemail
>> > 
>> > ~ $ movemail
>> > movemail: wrong number of arguments
>> > 
>> > ~ $ movemail --version
>> > movemail (GNU Mailutils) 3.17
>> 
>> OK, so now please tell what is "/home/me/mail/home".  Is it a file or
>> a directory?  If it's a directory, please show its contents.
>
> Ans also, what are the values of rmail-movemail-program and
> rmail-movemail-variant-in-use inside Emacs, after you load the Rmail
> library.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#73470; Package emacs. (Fri, 27 Sep 2024 16:01:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Marc Coquand <marc <at> mccd.space>
Cc: 73470 <at> debbugs.gnu.org
Subject: Re: bug#73470: Rmail is not working with maildirs
Date: Fri, 27 Sep 2024 18:59:54 +0300
> From: Marc Coquand <marc <at> mccd.space>
> Cc: 73470 <at> debbugs.gnu.org
> Date: Fri, 27 Sep 2024 18:15:46 +0300
> 
> 
> So /mail/home is a directory and the contents are maildir content. There
> is an INBOX file, cur, new, tmp and directories like Archive,
> Spam, Trash etc.
> 
> rmail-movemail-program is .nix-profile/bin/movemail. The second variable
> I can not find, even after opening rmail.

What Emacs version is that?

And please describe step by step how you get new email after
activating Rmail, what messages you see in *Messages* after that, and
whether there are any files names ".newmail-SOMETHING"  or RMAILOSE.n
(where n is a number) in the directory that is the default-directoy of
the Rmail buffer.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#73470; Package emacs. (Fri, 27 Sep 2024 16:43:01 GMT) Full text and rfc822 format available.

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

From: Marc Coquand <marc <at> mccd.space>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 73470 <at> debbugs.gnu.org
Subject: Re: bug#73470: Rmail is not working with maildirs
Date: Fri, 27 Sep 2024 19:38:15 +0300
Version is GNU Emacs 29.4 (build 2, x86_64-unknown-linux-gnu, X toolkit,
cairo version 1.18.0) of 2024-06-25.

I was able to change so I can read the inbox, I can read inbox files by
changing the command to

(setq rmail-primary-inbox-list
'("maildir:///home/mccd/mail/home/INBOX"))

Ideally though it'd be nice to have all email available from the
subdirectories as well. Perhaps this is not supported by Rmail.

This is the messages output:
Wrote /home/mccd/RMAIL
Computing summary lines...done
X new messages read
Making completion list...


Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Marc Coquand <marc <at> mccd.space>
>> Cc: 73470 <at> debbugs.gnu.org
>> Date: Fri, 27 Sep 2024 18:15:46 +0300
>> 
>> 
>> So /mail/home is a directory and the contents are maildir content. There
>> is an INBOX file, cur, new, tmp and directories like Archive,
>> Spam, Trash etc.
>> 
>> rmail-movemail-program is .nix-profile/bin/movemail. The second variable
>> I can not find, even after opening rmail.
>
> What Emacs version is that?
>
> And please describe step by step how you get new email after
> activating Rmail, what messages you see in *Messages* after that, and
> whether there are any files names ".newmail-SOMETHING"  or RMAILOSE.n
> (where n is a number) in the directory that is the default-directoy of
> the Rmail buffer.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#73470; Package emacs. (Fri, 27 Sep 2024 17:51:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Marc Coquand <marc <at> mccd.space>
Cc: 73470 <at> debbugs.gnu.org
Subject: Re: bug#73470: Rmail is not working with maildirs
Date: Fri, 27 Sep 2024 20:50:14 +0300
> From: Marc Coquand <marc <at> mccd.space>
> Cc: 73470 <at> debbugs.gnu.org
> Date: Fri, 27 Sep 2024 19:38:15 +0300
> 
> 
> Version is GNU Emacs 29.4 (build 2, x86_64-unknown-linux-gnu, X toolkit,
> cairo version 1.18.0) of 2024-06-25.
> 
> I was able to change so I can read the inbox, I can read inbox files by
> changing the command to
> 
> (setq rmail-primary-inbox-list
> '("maildir:///home/mccd/mail/home/INBOX"))
> 
> Ideally though it'd be nice to have all email available from the
> subdirectories as well. Perhaps this is not supported by Rmail.

Yes, it must be one file name.  But maybe you can try to add more
elements to the list for the other directories?

> This is the messages output:
> Wrote /home/mccd/RMAIL
> Computing summary lines...done
> X new messages read
> Making completion list...

Thanks, so this bug can be closed, I guess?




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 12 Oct 2024 11:20:01 GMT) Full text and rfc822 format available.

Notification sent to Marc Coquand <marc <at> mccd.space>:
bug acknowledged by developer. (Sat, 12 Oct 2024 11:20:02 GMT) Full text and rfc822 format available.

Message #37 received at 73470-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: marc <at> mccd.space
Cc: 73470-done <at> debbugs.gnu.org
Subject: Re: bug#73470: Rmail is not working with maildirs
Date: Sat, 12 Oct 2024 14:18:35 +0300
> Cc: 73470 <at> debbugs.gnu.org
> Date: Fri, 27 Sep 2024 20:50:14 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> 
> > From: Marc Coquand <marc <at> mccd.space>
> > Cc: 73470 <at> debbugs.gnu.org
> > Date: Fri, 27 Sep 2024 19:38:15 +0300
> > 
> > 
> > Version is GNU Emacs 29.4 (build 2, x86_64-unknown-linux-gnu, X toolkit,
> > cairo version 1.18.0) of 2024-06-25.
> > 
> > I was able to change so I can read the inbox, I can read inbox files by
> > changing the command to
> > 
> > (setq rmail-primary-inbox-list
> > '("maildir:///home/mccd/mail/home/INBOX"))
> > 
> > Ideally though it'd be nice to have all email available from the
> > subdirectories as well. Perhaps this is not supported by Rmail.
> 
> Yes, it must be one file name.  But maybe you can try to add more
> elements to the list for the other directories?
> 
> > This is the messages output:
> > Wrote /home/mccd/RMAIL
> > Computing summary lines...done
> > X new messages read
> > Making completion list...
> 
> Thanks, so this bug can be closed, I guess?

No further comments in 2 weeks, so I assume the bug can be closed.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 09 Nov 2024 12:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 223 days ago.

Previous Next


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