unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alexander Pohoyda <alexander.pohoyda@gmx.net>
Cc: emacs-devel@gnu.org
Subject: Re: [rmail-mbox-branch]: inital problems
Date: 06 Oct 2004 23:50:29 +0200	[thread overview]
Message-ID: <878yajwm6y.fsf@oak.pohoyda.family> (raw)
In-Reply-To: <E1C8S49-0001Jo-Ph@fencepost.gnu.org>

Richard Stallman <rms@gnu.org> 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 <alexander.pohoyda@gmx.net>
PGP Key fingerprint: 7F C9 CC 5A 75 CD 89 72  15 54 5F 62 20 23 C6 44

  parent reply	other threads:[~2004-10-06 21:50 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
2004-09-18 22:56         ` Richard Stallman
2004-10-06 21:50       ` Alexander Pohoyda [this message]
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878yajwm6y.fsf@oak.pohoyda.family \
    --to=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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).