[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rmail-mbox-branch]: inital problems
From: |
Alexander Pohoyda |
Subject: |
Re: [rmail-mbox-branch]: inital problems |
Date: |
06 Oct 2004 23:50:29 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
Richard Stallman <address@hidden> 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 <address@hidden>
PGP Key fingerprint: 7F C9 CC 5A 75 CD 89 72 15 54 5F 62 20 23 C6 44
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [rmail-mbox-branch]: inital problems,
Alexander Pohoyda <=