unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: W. Greenhouse <wgreenhouse-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org>
To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org
Subject: Re: using movemail directly in .emacs
Date: Sun, 04 May 2014 06:13:49 +0000	[thread overview]
Message-ID: <87wqe2yste.fsf@motoko.kusanagi> (raw)
In-Reply-To: 5365af95$0$17080$c3e8da3$dd9697d2@news.astraweb.com

Hello Hikaru,

Hikaru Ichijyo <ichijyo-P3s0QLKLlZzR7TO4fIE1SA@public.gmane.org> writes:

> Is any of this impossible or misguided?  I'd just strongly prefer my 
> mailbox in the system spool area where most UNIX tools expect it to be.

This sounds vaguely possible but probably misguided. If the goal is
simply to leave mail sitting at the spool, a simpler place to start is

(setq rmail-preserve-inbox t)

which will prevent Movemail from emptying the spool as it delivers to
rmail. I would not think it wise to copy back the RMAIL file to your
system mail spool, because rmail adds its own headers to track
flagged/read/replied/forwarded state and user-generated labels. Ideally,
other mbox-reading clients will just ignore these additional headers,
but rmail is mutating the messages it stores, not just moving or
deleting them, so some potential for problems exists.

As an alternative to flinging an mbox back and forth, you may be able to
have your system MTA deliver your mail directly to your home directory
in the more modern, non-blocking Maildir format, which several clients
can read and edit simultaneously even as mail is being delivered. For
example, at sites where Procmail controls local delivery from the MTA,
you can have a one-line ~/.procmailrc like

DEFAULT=Maildir/

to trigger delivery of all new mail to ~/Maildir/, as a mailbox name
ending in / is interpreted by procmail as a Maildir instead. With
Maildir you could use Mutt, KMail, Emacs's Gnus, and many others to
operate on the same mail store simultaneously, if you wanted. Alpine
requires a patch to support Maildir, and many other older clients such
as BSD mailx do not support it at all, but it is the emerging standard
over the past 10-15 years for UNIX mailclients that operate on a local
store, as well as for mail indexing programs and IMAP servers. And
message metadata such as flagged/read status is stored in the message
filenames themselves, and so is interoperable between clients.

--
Best,
WGG

Replies to list only, please.




  reply	other threads:[~2014-05-04  6:13 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 [this message]
     [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
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=87wqe2yste.fsf@motoko.kusanagi \
    --to=wgreenhouse-sgozh3hwpm2stnjn9+bgxg@public.gmane.org \
    --cc=help-gnu-emacs-mXXj517/zsQ@public.gmane.org \
    /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).