From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: [rmail-mbox-branch]: inital problems Date: Sat, 18 Sep 2004 18:56:11 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <1095204498.515091.23142.nullmailer@Update.UU.SE> <87fz5irvyv.fsf@oak.pohoyda.family> <1095354800.926412.7139.nullmailer@Update.UU.SE> <1095466194.208044.30690.nullmailer@Update.UU.SE> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1095548310 7275 80.91.229.6 (18 Sep 2004 22:58:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 18 Sep 2004 22:58:30 +0000 (UTC) Cc: alexander.pohoyda@gmx.net, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 19 00:58:23 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 1C8o9v-0004pl-00 for ; Sun, 19 Sep 2004 00:58:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C8oFi-00060s-LQ for ged-emacs-devel@m.gmane.org; Sat, 18 Sep 2004 19:04:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C8oDx-0005Ok-A0 for emacs-devel@gnu.org; Sat, 18 Sep 2004 19:02:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C8oDv-0005Nj-AN for emacs-devel@gnu.org; Sat, 18 Sep 2004 19:02:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C8oDv-0005NX-3L for emacs-devel@gnu.org; Sat, 18 Sep 2004 19:02:31 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C8o7o-00012U-Av for emacs-devel@gnu.org; Sat, 18 Sep 2004 18:56:12 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1C8o7n-0000uG-TV; Sat, 18 Sep 2004 18:56:12 -0400 Original-To: "Alfred M. Szmidt" In-reply-to: <1095466194.208044.30690.nullmailer@Update.UU.SE> (ams@kemisten.nu) 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:27261 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27261 Your change seems reasonable--would someone please install it? --- rmail.el 23 Feb 2003 00:33:25 -0000 1.368.2.5 +++ rmail.el 18 Sep 2004 00:08:34 -0000 @@ -684,16 +685,16 @@ If `rmail-display-summary' is non-nil, m (find-file-noselect file-name)))) (if (eq major-mode 'rmail-edit-mode) (error "Exit Rmail Edit mode before getting new mail")) + ;; 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")) (if (and existed (> (buffer-size) 0)) ;; Buffer not new and not empty; ensure in proper mode, but that's all. (or (eq major-mode 'rmail-mode) (progn (rmail-mode-2) (setq run-mail-hook t))) (setq run-mail-hook t) - (rmail-mode-2) - ;; Convert all or part to Babyl file if possible. -;;; (rmail-convert-file) - (goto-char (point-max))) + (rmail-mode-2)) ;; As we have read a file by raw-text, the buffer is set to ;; unibyte. We must make it multibyte if necessary. (if (and rmail-enable-multibyte