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: 20 Jun 2004 00:28:45 +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 1088536938 21714 80.91.224.253 (29 Jun 2004 19:22:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Jun 2004 19:22:18 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 29 21:21:54 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 1BfOB0-00061v-00 for ; Tue, 29 Jun 2004 21:21:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BfOCf-0003n3-Q0 for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jun 2004 15:23:37 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news2.telebyte.nl!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 60 Original-NNTP-Posting-Host: p50904706.dip0.t-ipconnect.de Original-X-Trace: online.de 1087684126 24308 80.144.71.6 (19 Jun 2004 22:28:46 GMT) Original-X-Complaints-To: abuse@einsundeins.com Original-NNTP-Posting-Date: Sat, 19 Jun 2004 22:28:46 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:123841 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:19199 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19199 Oops! I just wrote: > 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. Or could this be a misconception? I just tried to read the code of rmail-get-new-mail and rmail-insert-inbox-text, which is so astonishingly complex that I lost count of what is happening where. I'm no longer sure what movemail does with its arguments, but a short test I've run suggests it does something roughly equivalent to the following: if [ -x "$2" ] echo "File $2 exists" else do cat "$1" > "$2" echo "" > "$1" done So it seems the second argument might not be the rmail file but some temporary file rmail mode creates. Correct? > But movemail also converts Unix mbox format to Babyl format on the > fly This seems in fact to be wrong. I've just run a little test where movemail left the contents alone (apart from moving them, that is), and the conversion seemed to be done by rmail mode later. So what to do? Is the little script Pascal has supplied in fact a functional replacement for movemail, which only has to be put in its place to work (or do I only have to apply the modification I have explained)? I am wondering why this is all so complex. -- 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.