From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hikaru Ichijyo Newsgroups: gmane.emacs.help Subject: Re: using movemail directly in .emacs Date: 04 May 2014 17:56:11 GMT Organization: UN Spacy Message-ID: <53667f3b$0$59900$c3e8da3$e074e489@news.astraweb.com> References: <5365af95$0$17080$c3e8da3$dd9697d2@news.astraweb.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1399226428 23011 80.91.229.3 (4 May 2014 18:00:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 May 2014 18:00:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 04 20:00:22 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 1Wh0i2-0002kW-6d for geh-help-gnu-emacs@m.gmane.org; Sun, 04 May 2014 20:00:18 +0200 Original-Received: from localhost ([::1]:54103 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wh0i1-0005gy-O5 for geh-help-gnu-emacs@m.gmane.org; Sun, 04 May 2014 14:00:17 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!us.feeder.erje.net!newspeer1.nac.net!news.astraweb.com!border5.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: tin/2.0.1-20111224 ("Achenvoir") (UNIX) (Linux/3.14.2 (x86_64)) Original-Lines: 57 Original-NNTP-Posting-Host: 561a7b7c.news.astraweb.com Original-X-Trace: DXC=T4g4W4QAR@gfMO9kN]`\TcL?0kYOcDh@j>B84ePTHYj`_Uem[O7iimkaJO_]QU2XRhDg<3iRT8n:g6e^?9Z0mn 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:97558 Archived-At: W. Greenhouse wrote: In article you wrote: > 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. I only mentioned RMAIL because I think the movemail Lisp program is provided for its sake in Emacs. I'd probably be using VM though. While I'm using Emacs, probably there will be new emails received, and I may delete messages. Whatever has happened while I'm working on my mailbox in Emacs will need to be restored to the system spool afterward. Do you think VM will put metadata in my mailbox that other mailers couldn't deal with? > 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. Sorry, I appreciate the advantages of Maildir, but I'm really trying to keep a regular Berkeley mbox file in my /var/spool/mail. If I wanted to manually invoke movemail in my .emacs as part of startup and shutdown hooks, what would that look like? -- He that would make his own liberty secure must guard even his enemy from oppression; for if he violates this duty, he establishes a precedent that will reach to himself. --Thomas Paine