From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: modifying movemail Date: 20 Jun 2004 00:10:37 +0200 Organization: [posted via Easynet Spain] Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87wu236vxe.fsf@thalassa.informatimago.com> References: <87d63vwip2.fsf@thalassa.informatimago.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1088536924 21677 80.91.224.253 (29 Jun 2004 19:22:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Jun 2004 19:22:04 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 29 21:21:42 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BfOAn-00060V-00 for ; Tue, 29 Jun 2004 21:21:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BfOCT-0003hw-PO for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jun 2004 15:23:25 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news2.telebyte.nl!border2.nntp.ams.giganews.com!nntp.giganews.com!dedekind.zen.co.uk!zen.net.uk!demorgan.zen.co.uk!195.40.0.165.MISMATCH!easynet-monga!easynet.net!easynet-post2!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Lines: 41 Original-NNTP-Posting-Host: 62.93.174.79 Original-X-Trace: DXC=iTj_8KZ:A?j`[TBQ>bS`EiSiHWb3f14:cbBd4DjF1d]a Original-Xref: shelby.stanford.edu gnu.emacs.help:123840 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 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 Xref: main.gmane.org gmane.emacs.help:19198 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19198 Florian von Savigny writes: > Thanks for this quick and simple poor man's file-locking mechanism, > Pascal, which I find quite charming (and couldn't have thought of) and > hadn't hoped for at all. > > I fear, however, that the following is a bit less than what movemail > is expected to do: > > > mv "$1" "$2" > > as it does not overwrite the target Rmail file, but append to it while > emptying the spool file. So I suppose s.th like > > cat "$1" >> "$2" > echo "" > "$1" > > should do it. But movemail also converts Unix mbox format to Babyl > format on the fly (or have they switched to mbox as internal Rmail > format in the meantime? I read they were planning it.). How to achieve > that? > > [BTW, I seem to have been less than clear about one thing: the movemail > I need to modify is the one to run under Linux, not the one that runs > under Windows. That has to deal with FAT32 anyway, thus should be able > to do the trick (though I haven't yet tested it--brrr...). But this > does not interfere with the usefulness of your solution.] > > > So thanks a lot - but is anybody able to help with the conversion (or > supply a pointer to the right information)? In emacs: C-h i m emacs RET m rmail RET m movemail RET -- __Pascal Bourguignon__ http://www.informatimago.com/ There is no worse tyranny than to force a man to pay for what he does not want merely because you think it would be good for him. -- Robert Heinlein