From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Thorpe Newsgroups: gmane.emacs.help Subject: Re: Rmail, movemail and maildir Date: Thu, 06 Apr 2017 05:29:41 +0100 Message-ID: <87zifuduq2.fsf@robertthorpeconsulting.com> References: <20170405142103.GA30725@joshua.dnsalias.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1491453041 25287 195.159.176.226 (6 Apr 2017 04:30:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 6 Apr 2017 04:30:41 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Mike Gran" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 06 06:30:27 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cvz3t-0004dB-7c for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Apr 2017 06:30:21 +0200 Original-Received: from localhost ([::1]:43430 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvz3z-0000As-0M for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Apr 2017 00:30:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvz3P-0000Aa-Nr for help-gnu-emacs@gnu.org; Thu, 06 Apr 2017 00:29:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cvz3K-0000li-Qg for help-gnu-emacs@gnu.org; Thu, 06 Apr 2017 00:29:51 -0400 Original-Received: from outbound-smtp02.blacknight.com ([81.17.249.8]:47636) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cvz3K-0000kd-KW for help-gnu-emacs@gnu.org; Thu, 06 Apr 2017 00:29:46 -0400 Original-Received: from mail.blacknight.com (pemlinmail01.blacknight.ie [81.17.254.10]) by outbound-smtp02.blacknight.com (Postfix) with ESMTPS id 297DD98DC8 for ; Thu, 6 Apr 2017 04:29:43 +0000 (UTC) Original-Received: (qmail 18496 invoked from network); 6 Apr 2017 04:29:43 -0000 Original-Received: from unknown (HELO RTLaptop) (rt@robertthorpeconsulting.com@[51.37.118.215]) by 81.17.254.9 with ESMTPSA (AES128-SHA encrypted, authenticated); 6 Apr 2017 04:29:43 -0000 In-Reply-To: <20170405142103.GA30725@joshua.dnsalias.com> (spk121@yahoo.com) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-Received-From: 81.17.249.8 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112703 Archived-At: "Mike Gran" 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