* rmail-forward
@ 2011-01-14 4:04 Eli Zaretskii
2011-01-14 5:39 ` rmail-forward Kenichi Handa
0 siblings, 1 reply; 2+ messages in thread
From: Eli Zaretskii @ 2011-01-14 4:04 UTC (permalink / raw)
To: emacs-devel
rmail-forward lately began to format the forwarded messages weirdly.
It doesn't use the specially formatted lines delimiting the message,
that it used to use before, and instead inserts some weird looking
delimiters such as this one:
<#part type=message/rfc822 disposition=inline raw=t>
It also inserts the forwarded message with all its headers, including
the ones created by Rmail for its own purposes, like
"X-RMAIL-ATTRIBUTES:". Previously, I could control whether these
headers are copied to the forwarded message by toggling their display
(with `t') in the RMAIL buffer prior to using `f' to forward the
message, and the default was not to copy these headers, only those
normally shown by rmail-show-message.
Is this a bug or a feature? If the latter, what is its purpose?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: rmail-forward
2011-01-14 4:04 rmail-forward Eli Zaretskii
@ 2011-01-14 5:39 ` Kenichi Handa
0 siblings, 0 replies; 2+ messages in thread
From: Kenichi Handa @ 2011-01-14 5:39 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 335 bytes --]
In article <E1Pdatz-0001V4-T7@fencepost.gnu.org>, Eli Zaretskii <eliz@gnu.org> writes:
> rmail-forward lately began to format the forwarded messages weirdly.
> It doesn't use the specially formatted lines delimiting the message,
> that it used to use before, and instead inserts some weird looking
> delimiters such as this one:
>
[-- Attachment #2: Type: message/rfc822, Size: 1615 bytes --]
> Is this a bug or a feature? If the latter, what is its purpose?
It's a feature. When rmail-enable-mime is non-nil, message
forwarding is also done in MIME style; i.e., the forwarding
message is embeded in message/rfc822 entity of a multipart
body. That whole work is done by
message-forward-make-body-mime of message.el which I didn't
touch.
It seems that it'a policy of message.el to include all
headers in a forwarding message except those matching with
message-forward-ignored-headers (which currently doesn't
include X-RMAIL-* but should include). MIME-capable MUA
(includihng rmail-mime) anyway prunes the forwarded header
accoding to it's policy (e.g. rmail-ignored-headers).
Please test to forward some mail to yourself and see how
it's shown to you by rmail. Re-forwarding that forwarded
message generates a further nested MIME message.
By the way, I first tried to use
message-forward-rmail-make-body instead of
message-forward-make-body-mime, but it signals an error
while trying to un-prune the messsage header. It seems that
message-forward-rmail-make-body is not yet adjusted for the
new mbox-based rmail code.
---
Kenichi Handa
handa@m17n.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-14 5:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-14 4:04 rmail-forward Eli Zaretskii
2011-01-14 5:39 ` rmail-forward Kenichi Handa
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).