From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Florian von Savigny Newsgroups: gmane.emacs.help Subject: Re: modifying movemail Date: 19 Jun 2004 23:54:25 +0200 Organization: 1&1 Internet AG Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <87d63vwip2.fsf@thalassa.informatimago.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1088536905 21606 80.91.224.253 (29 Jun 2004 19:21:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Jun 2004 19:21:45 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 29 21:21:29 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 1BfOAb-0005z3-00 for ; Tue, 29 Jun 2004 21:21:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BfOCH-0003aV-8v for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jun 2004 15:23:13 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news2.telebyte.nl!news-fra1.dfn.de!news-lei1.dfn.de!newsfeed00.sul.t-online.de!t-online.de!inka.de!rz.uni-karlsruhe.de!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 58 Original-NNTP-Posting-Host: p50904706.dip0.t-ipconnect.de Original-X-Trace: online.de 1087682065 22558 80.144.71.6 (19 Jun 2004 21:54:25 GMT) Original-X-Complaints-To: abuse@einsundeins.com Original-NNTP-Posting-Date: Sat, 19 Jun 2004 21:54:25 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:123839 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:19197 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19197 Pascal Bourguignon writes: > #!/bin/bash > echo $$ > "$1".lock > while [ `cat "$1".lock` -ne "$$" ] ; do > while [ -x "$1".lock ] ; do > sleep 5 > done > echo $$ > "$1".lock > done . . . > rm "$1".lock > #### movemail -- 2003-10-27 01:10:45 -- pascal #### 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)? -- Florian v. Savigny If you are going to reply in private, please be patient, as I only check for mail something like once a week. - Si vous allez répondre personellement, patientez s.v.p., car je ne lis les courriels qu'environ une fois par semaine.