help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rmail, movemail and maildir


From: Robert Thorpe
Subject: Re: Rmail, movemail and maildir
Date: Thu, 06 Apr 2017 05:29:41 +0100

"Mike Gran" <address@hidden> writes:

> Hello.  This is my first time ever asking for help on emacs, but,
> this one has me stumped.
>
> (This is GNU Emacs 25.1.1 (x86_64-redhat-linux-gnu))
>
> I'm trying to set up old-school rmail, and I want it to fetch
> mail from a Maildir directory on my home filesystem.  According to
> the instructions, I need to install movemail, which I did, and
> then set some variables.  So my .emacs now has
>
> ;; MAIL
> (setq rmail-movemail-program "/usr/local/bin/movemail")
> (setq rmail-primary-inbox-list '("maildir:///home/mike/Maildir"))
> (setq rmail-movemail-flags (list "-p --emacs"))
>
> But I can't get emacs rmail to invoke movemail.
>
> I can run movemail manually like so, which works.
>
> movemail -p --emacs maildir:///home/mike/Maildir ~/RMAIL --verbose
>
> The docs here are actually a bit unclear.  They discuss how to make
> a URL for a mailbox for movemail, but they don't tell you where
> that URL should go.
>
> https://www.gnu.org/software/emacs/manual/html_node/emacs/Movemail.html

I don't know exactly what's wrong with your setup.

I use movemail from mailutils, I didn't have to do anything to set that
up.  When my distro installed it the emacs movemail stopped being the
default.  I'm not sure exactly how it did that.  The variable
rmail-movemail-program is set to "/usr/bin/movemail".  Emacs customize
tells me that it was changed outside Emacs, but I didn't change it in my
init file.

When you're in Emacs and you have Rmail started there's a function to
tell you which type of movemail you're using.  If you're using mailutils
then if you evaluate: (rmail-movemail-variant-p 'mailutils) then it will
give "t".  If you evaluate (rmail-movemail-variant-p 'emacs) then it
will give "nil".  If you're using the Emacs variant then it will be the
opposite way around.

As far as I can tell you're using the "maildir://" prefix correctly.

You should not need to set the movemail flag "--emacs" since Emacs
always adds that.  I don't think you should need to use "-p" either
unless you need to reverse the message order.

BR,
Robert Thorpe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]