all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Thorpe <rt@robertthorpeconsulting.com>
To: "visaris tds.net" <visaris@tds.net>
Cc: help-gnu-emacs@gnu.org, visaris@tds.net
Subject: Re: reading mail with emacs
Date: Wed, 13 Aug 2014 02:18:02 +0100	[thread overview]
Message-ID: <87k36d2nn9.fsf@robertthorpeconsulting.com> (raw)
In-Reply-To: <CA+Jy_pB+Y-NN7F+1mViJ+E-iqvrkScdE69X3Vt23ehFoXbVnMw@mail.gmail.com> (visaris@tds.net)

"visaris tds.net" <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



  parent reply	other threads:[~2014-08-13  1:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-12 14:29 reading mail with emacs visaris tds.net
2014-08-12 17:14 ` Sharon Kimble
2014-08-13  1:18 ` Robert Thorpe [this message]
     [not found]   ` <CA+Jy_pASyaNiFxAoNF-+P0fhpsfmvtty1CzEkCAeCR-d5TYfkg@mail.gmail.com>
2014-08-14  1:14     ` visaris tds.net
2014-08-14  1:26       ` visaris tds.net
     [not found]       ` <mailman.7089.1407979619.1147.help-gnu-emacs@gnu.org>
2014-08-14 23:52         ` Emanuel Berg
2014-08-15  4:09           ` Jorge Araya Navarro
     [not found]           ` <mailman.7112.1408075888.1147.help-gnu-emacs@gnu.org>
2014-08-15 19:19             ` Emanuel Berg
     [not found] <mailman.7024.1407858485.1147.help-gnu-emacs@gnu.org>
2014-08-12 16:57 ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k36d2nn9.fsf@robertthorpeconsulting.com \
    --to=rt@robertthorpeconsulting.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=visaris@tds.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.