From: "Alfred M. Szmidt" <ams@kemisten.nu>
Cc: alexander.pohoyda@gmx.net, emacs-devel@gnu.org
Subject: Re: [rmail-mbox-branch]: inital problems
Date: Sat, 18 Sep 2004 02:09:54 +0200 [thread overview]
Message-ID: <1095466194.208044.30690.nullmailer@Update.UU.SE> (raw)
In-Reply-To: <E1C8S49-0001Jo-Ph@fencepost.gnu.org> (message from Richard Stallman on Fri, 17 Sep 2004 19:22:57 -0400)
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?
I don't like it, it does the check far far to late. It should do it
before switching to any modes.
I was thinking something more along the lines of:
--- 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
next prev parent reply other threads:[~2004-09-18 0:09 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-14 23:28 [rmail-mbox-branch]: inital problems Alfred M. Szmidt
2004-09-16 16:59 ` Alexander Pohoyda
2004-09-16 17:13 ` Alfred M. Szmidt
2004-09-17 23:22 ` Richard Stallman
2004-09-18 0:09 ` Alfred M. Szmidt [this message]
2004-09-18 22:56 ` Richard Stallman
2004-10-06 21:50 ` Alexander Pohoyda
2004-09-18 19:07 ` Richard Stallman
2004-09-18 21:10 ` Stefan
2004-09-16 17:21 ` Alfred M. Szmidt
2004-09-17 23:23 ` Richard Stallman
2004-09-17 23:57 ` Alfred M. Szmidt
2004-09-18 22:56 ` Richard Stallman
2004-09-20 0:06 ` Richard Stallman
2004-09-20 0:26 ` Alfred M. Szmidt
2004-09-20 0:42 ` Alfred M. Szmidt
2004-09-17 9:36 ` Richard Stallman
2004-09-18 0:18 ` Alfred M. Szmidt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1095466194.208044.30690.nullmailer@Update.UU.SE \
--to=ams@kemisten.nu \
--cc=alexander.pohoyda@gmx.net \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.