From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alexander Pohoyda Newsgroups: gmane.emacs.devel Subject: Re: [rmail-mbox-branch]: inital problems Date: 06 Oct 2004 23:50:29 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <878yajwm6y.fsf@oak.pohoyda.family> References: <1095204498.515091.23142.nullmailer@Update.UU.SE> <87fz5irvyv.fsf@oak.pohoyda.family> <1095354800.926412.7139.nullmailer@Update.UU.SE> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1097099462 20354 80.91.229.6 (6 Oct 2004 21:51:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Oct 2004 21:51:02 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 06 23:50:56 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 1CFJgV-0006S4-00 for ; Wed, 06 Oct 2004 23:50:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CFJnD-0000o5-9K for ged-emacs-devel@m.gmane.org; Wed, 06 Oct 2004 17:57:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CFJn0-0000lW-4n for emacs-devel@gnu.org; Wed, 06 Oct 2004 17:57:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CFJmz-0000kt-1P for emacs-devel@gnu.org; Wed, 06 Oct 2004 17:57:37 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CFJmy-0000kq-TL for emacs-devel@gnu.org; Wed, 06 Oct 2004 17:57:37 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1CFJg9-00034B-Ot for emacs-devel@gnu.org; Wed, 06 Oct 2004 17:50:34 -0400 Original-Received: (qmail 13859 invoked by uid 65534); 6 Oct 2004 21:50:32 -0000 Original-Received: from p50842C34.dip0.t-ipconnect.de (EHLO www2.gmx.net) (80.132.44.52) by mail.gmx.net (mp017) with SMTP; 06 Oct 2004 23:50:32 +0200 X-Authenticated: #14602519 Original-Received: from oak.pohoyda.family (localhost [127.0.0.1]) by www2.gmx.net (8.12.10/8.12.10) with ESMTP id i96LoUWT002082; Wed, 6 Oct 2004 23:50:30 +0200 (CEST) (envelope-from alexander.pohoyda@gmx.net) Original-Received: (from apog@localhost) by oak.pohoyda.family (8.12.10/8.12.10/Submit) id i96LoUIr002079; Wed, 6 Oct 2004 23:50:30 +0200 (CEST) (envelope-from alexander.pohoyda@gmx.net) X-Authentication-Warning: oak.pohoyda.family: apog set sender to alexander.pohoyda@gmx.net using -f Original-To: rms@gnu.org In-Reply-To: Original-Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:28011 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28011 Richard Stallman writes: > It would be nice if the new rmail would report an error if it is > trying to open a old mailbox. Right now it just assumes that it knows > what it is doing, and will barf with a babyl formated mailbox. > > How about this? > > (setq run-mail-hook t) > (rmail-mode-2) > ! (goto-char (point-min)) > ! ;; If file starts like a Babyl file, reject it. > ! (if (looking-at "BABYL OPTIONS:") > ! (error "This is a BABYL file; use M-x unrmail to convert it"))) > (goto-char (point-max))) > ;; As we have read a file by raw-text, the buffer is set to > ;; unibyte. We must make it multibyte if necessary. There's a function `mail-file-babyl-p' in mail-utils.el, shouldn't we use it? -- Alexander Pohoyda PGP Key fingerprint: 7F C9 CC 5A 75 CD 89 72 15 54 5F 62 20 23 C6 44