GNU bug report logs - #7987
message-mode perhaps to document more that it expects mail-header-separator

Previous Next

Packages: emacs, gnus;

Reported by: Jesse Sheidlower <jester <at> panix.com>

Date: Sat, 5 Feb 2011 03:18:02 UTC

Severity: minor

Tags: notabug, wontfix

Merged with 8594

Found in version 23.2

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jesse Sheidlower <jester <at> panix.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Glenn Morris <rgm <at> gnu.org>, 7987 <at> debbugs.gnu.org
Subject: bug#7987: 23.2; Refill error in message-mode
Date: Thu, 10 Feb 2011 16:02:09 -0500
On Thu, Feb 10, 2011 at 02:50:42PM -0500, Stefan Monnier wrote:
> > Hmm. I guess you're right, although this behavior doesn't seem to be
> > mentioned in the Manual. I'm using message-mode with Mutt, so there are
> > no headers in the buffer.
> 
> No headers at all?  Where's the subject, then?

In the headers that are not dumped to Emacs. The default configuration
of Mutt has the headers edited through the Mutt interface, and only the
body is sent to your $EDITOR. (You can override this, and edit the
entire message, including headers, if desired, but my impression is that
most people don't do this.)

> > I'll experiment further and will update if necessary. Is there a
> > preferred way to tell message-mode to assume that the buffer is a
> > message body, rather than a header?
> 
> Add a header.
> 
> Maybe it would be be good to make message-mode accept an empty line as
> a mail-header-separator (as does rfc822-goto-eoh).

Well, I don't truly know how common this use-case is (though it's common
enough that the EmacsWiki entry for Mutt and Emacs provides a
workaround), but maybe it would also be good to be able to have
message-mode accept the fact that you're editing a message body only? I
personally don't use message-mode for the actual sending of messages,
and in general I'd think that there could be reasons for wanting the
editing and formatting features of message-mode without the sending
features. Being able to say explicitly that you're editing the body
would be, to my mind, a better solution than adding a fake header, or
adding "(setq mail-header-separator "")" to one's .emacs, which feel
like kludges for this issue.

I'm not familiar with other text-based e-mail programs, but this is how
most GUI or web-based mailers work too--the headers are off in one
place, where they can be modified using one method, and the body is some
textarea that is edited using some other variety of tools.

Jesse Sheidlower




This bug report was last modified 13 years and 318 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.