[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 3 bugs in Rmail

From: Glenn Morris
Subject: Re: 3 bugs in Rmail
Date: Tue, 11 Jan 2011 02:39:20 -0500
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

>> * I want "To" listed before "CC"

Turns out this is a message.el bug.

rmail-start-mail calls compose-mail with
OTHER-HEADERS = '(("in-reply-to" . <in-reply-to>) ("cc" . <cc-string>)
    ("references" . <ref-string>))

The doc of compose-mail says:

      OTHER-HEADERS is an alist specifying additional header fields.
      Elements look like (HEADER . VALUE) where both HEADER and VALUE
      are strings.
so rmail is doing the right thing.

With message-user-agent, compose-mail calls message-mail.
This however expects OTHER-HEADERS to have elements of the form
(SYMBOL . VALUE). This is in contradiction to the doc of compose-mail.

The funnt header order comes from the fact that message-mail passes
the headers through to message-setup and message-setup-1. The latter
basically inserts headers in the order specified by
message-header-format-alist. Any elements not present in that list are
inserted first. Since the elements of message-header-format-alist are
symbols and the test is done with assq, the strings "cc" and
"in-reply-to" are not found in that list and so end up being inserted
first in the reply buffer.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]