unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Robert Thorpe <rt@robertthorpeconsulting.com>
To: Hikaru Ichijyo <ichijyo@macross.sdf.jp>
Cc: help-gnu-emacs@gnu.org
Subject: Re: using movemail directly in .emacs
Date: Sun, 04 May 2014 21:32:28 +0100	[thread overview]
Message-ID: <87zjix474z.fsf@robertthorpeconsulting.com> (raw)
In-Reply-To: <53667f3b$0$59900$c3e8da3$e074e489@news.astraweb.com> (message from Hikaru Ichijyo on 04 May 2014 17:56:11 GMT)

Hikaru Ichijyo <ichijyo@macross.sdf.jp> writes:

I think it's possible to do what you want.  It'll be quite a fragile
setup though.

Movemail isn't a Lisp program, it's a C program.  There are two versions
of it, the simple one the ships with Emacs and a more complete one
that's part of the GNU Mailutils package.

You run it like this:
movemail -p mbox://var/spool/mail/smith ~/to.mbox
The "-p" switch preserves the contents of the the mailbox you're taking
the mail from.  You can run it from .emacs using something like
"shell-command".  Check out the Mailutils manual at gnu.org.

As W. Greenhouse mentions Rmail and similar mailers put info in the mbox
file that may make it incompatible with other mailers.  I have no idea
if VM does this, check it's manual.

Here's an alternative way to change mailer that may be easier.  Start up
another email account.  Send stuff like this list and other email lists
to it.  Get used to your chosen Emacs mailer using that new account.
Then, later on use Emacs for both your regular account and that one.
Most Emacs mailers allow you to pick up mail from multiple accounts.
That may interfer with your use of the mail spool though.

BR,
Robert Thorpe



  reply	other threads:[~2014-05-04 20:32 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-04  3:10 using movemail directly in .emacs Hikaru Ichijyo
2014-05-04  6:13 ` W. Greenhouse
     [not found] ` <mailman.634.1399184068.1147.help-gnu-emacs@gnu.org>
2014-05-04 17:56   ` Hikaru Ichijyo
2014-05-04 20:32     ` Robert Thorpe [this message]
2014-05-24 12:39 ` lee
2014-05-25 19:54   ` Robert Thorpe
2014-05-26 11:40     ` lee
     [not found] <mailman.649.1399235566.1147.help-gnu-emacs@gnu.org>
2014-05-05  0:05 ` Hikaru Ichijyo
     [not found] <mailman.2077.1401047678.1147.help-gnu-emacs@gnu.org>
2014-05-26 22:41 ` Hikaru Ichijyo
2014-05-27  1:58   ` lee
2014-05-27 21:23     ` Robert Thorpe
2014-05-29  1:35       ` lee
2014-05-29 21:59         ` Robert Thorpe
2014-06-05 19:03           ` lee
2014-06-05 22:21             ` Robert Thorpe

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87zjix474z.fsf@robertthorpeconsulting.com \
    --to=rt@robertthorpeconsulting.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=ichijyo@macross.sdf.jp \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).