[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-mailutils] OT - RMAIL headers
From: |
Sergey Poznyakoff |
Subject: |
Re: [bug-mailutils] OT - RMAIL headers |
Date: |
Mon, 27 Sep 2010 20:20:27 +0300 |
address@hidden ha escrit:
> I hope this message doesn't offend!
Of course it does not. Your questions are welcome, even if they are
more Emacs- than Mailutils-related:)
> When I compose a new message in RMAIL, or simply doing a `M-x mail',
> my user-defined headers appear as follow:
>
> User-Agent: RMAIL; GNU Mailutils 2.2; GNU Emacs 23.1; Linux i686Reply-to:
> address@hidden
In your .emacs you have:
(setq mail-default-headers "User-Agent: RMAIL; GNU Mailutils 2.1; GNU Emacs
23.1")
The value of this variable is inserted into the headers verbatim, hence
the missing newline.
> How can I include a "newline" in the User-Agent header?
Add an \n symbol to the end of the above statement:
(setq mail-default-headers "User-Agent: RMAIL; GNU Mailutils 2.1; GNU Emacs
23.1\n")
> When replying to a message, is it possible to have the
> In-reply-to-blah header appear in the message body instead of in the
> headers section?
Then it will not be a header. Headers are `name: value' pairs appearing
*before* the very first empty line. Mail body is everything that goes
after it. So, your question actually is: "can one set up the body of
the message before entering compose mode". The answer is: yes, use
mail-setup-hook. This hook is executed when you hit `C-x m' (or
whatever key binding you have to turn on mail mode). It can be used to
insert any data both in the header and in the body parts of the message.
> can this In-reply-to header be customized?
Well, in Emacs everything can be customized:) However, I wonder why do
you need to modify that header. It does not seem a wise idea, because
the In-reply-to heaader is strictly formalized by RFC 2822, and adding
arbitrary data to it may misguide recipient mail software.
Regards,
Sergey