From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Thorpe Newsgroups: gmane.emacs.help Subject: Re: reading mail with emacs Date: Wed, 13 Aug 2014 02:18:02 +0100 Message-ID: <87k36d2nn9.fsf@robertthorpeconsulting.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1407892717 20327 80.91.229.3 (13 Aug 2014 01:18:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Aug 2014 01:18:37 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, visaris@tds.net To: "visaris tds.net" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 13 03:18:31 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XHNCv-00051y-4y for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Aug 2014 03:18:29 +0200 Original-Received: from localhost ([::1]:44508 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHNCu-0004iO-IS for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Aug 2014 21:18:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHNCe-0004hS-AY for help-gnu-emacs@gnu.org; Tue, 12 Aug 2014 21:18:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XHNCY-0002Zd-Bb for help-gnu-emacs@gnu.org; Tue, 12 Aug 2014 21:18:12 -0400 Original-Received: from outbound-smtp06.blacknight.com ([81.17.249.39]:48915) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHNCY-0002ZO-39 for help-gnu-emacs@gnu.org; Tue, 12 Aug 2014 21:18:06 -0400 Original-Received: from mail.blacknight.com (pemlinmail05.blacknight.ie [81.17.254.26]) by outbound-smtp06.blacknight.com (Postfix) with ESMTP id CBA1398A3C for ; Wed, 13 Aug 2014 01:17:15 +0000 (UTC) Original-Received: (qmail 26370 invoked from network); 13 Aug 2014 01:18:04 -0000 Original-Received: from unknown (HELO RTLaptop) (rt@robertthorpeconsulting.com@[109.77.242.172]) by 81.17.254.9 with ESMTPSA (DHE-RSA-AES128-SHA encrypted, authenticated); 13 Aug 2014 01:18:03 -0000 In-Reply-To: (visaris@tds.net) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 81.17.249.39 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99183 Archived-At: "visaris tds.net" writes: > Whereas I have been reading mail with emacs for decades, I did a new install > (I'm a gentoo user) and now what once automagically worked nolonger does... > Emacs seems to function -- exept for mail. > > Although I have fethcmail and exim running, and although mail does > arive in /var/spool/exim/input, the format is that each message is split > into > a header file and then the body of the message. > > M-x rmail does not get mail from /var/spool/exim/input. Did you post about this to the Emacs Reddit group recently? As someone else wrote there /var/spool/exim/input is Exim's *input* spool file. It's where Exim puts emails before they are delivered. As far as I understand it Exim is not designed to have users get stuff from that directory. In the past it may have only worked by coincidence, because older versions of Exim stored stuff in some format that movemail understands. > I have spent much time chasing cryptic pointers reading unintelligable > documents making vague references to "movemail" but it is beyond me. > I have contemplated perusing the RMAIL file and comparing it with > contents of /var/spool/exim/input so as to increase the chance that I can > make some lucky guesses and write a c program to bridge the gap from > /var/spool/exim/input to RMAIL. Surely emacs has not deteriated to the > point that this would be necessary. I find it difficult to believe there > is not > some simple way to proceed. "Movemail" fulfills two purposes. Firstly, it moves mails between different places on one system. It can take mail from the spool file(s) to a mbox file in the user's home directory. (If the spool file is in MH or Maildir format it can translate that to mbox). Secondly, it can act rather like fetchmail, it can download mails from an IMAP or POP server and copy them to a mbox file in the user's home directory. After movemail has done it's thing rmail itself takes over. Rmail is really just a viewer for mbox files. Rmail runs movemail automatically, there's no need to run it manually. If you have an MTA setup then it's normal to use it in the first way. The MTA puts mail in a spool file. Then when you do M-x rmail it calls movemail which moves it to the "RMAIL" file in your home directory. That's what happens if you set the MAIL environment variable to your spool file. If you want to make that approach work you need to figure out Exim (I find its manual baffling). One way that could work is to use the LMTP transport of Exim to communicate with a mail delivery program such as maidag or maildrop. Those programs put mail into spool files for users to access. In this case you'll have: fetchmail(MRA)->Exim(MTA)->Maidag(MDA)->SpoolFile->movemail->rmail. Alternatively, you can bring mail directly from your IMAP or POP server using movemail. That's what I do, I don't run an MTA on my PC at all, I deliver using Emac's smtpmail library. To do this do something like: (setq send-mail-function 'smtpmail-send-it) (setq smtpmail-smtp-server "smtp.yourisp.com") (setq rmail-primary-inbox-list '("imap://yourlogin:password@imap.yourisp.com")) To use IMAP you need the version of movemail in the GNU mailutils package. The one that comes with Emacs only supports POP. BR, Robert Thorpe