From: Masanobu UMEDA <umerin@ci.kyutech.ac.jp>
To: rms@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: rmailmime.el
Date: Thu, 27 Dec 2007 01:20:37 +0900 [thread overview]
Message-ID: <200712261620.BAA23474@latour.cad.ci.kyutech.ac.jp> (raw)
In-Reply-To: <E1J6Y7F-0002zV-KR@fencepost.gnu.org> (message from Richard Stallman on Sun, 23 Dec 2007 16:12:09 -0500)
From: Richard Stallman <rms@gnu.org>
Date: Sun, 23 Dec 2007 16:12:09 -0500
I see that rmailmime.el invokes metamail.el,
and metamail seems to feed the message to metamail.
But what does that actually do?
What metamail does depends on your ~/.mailcap. Personally, I use it
to decode and preview application-specific files, such as PDF. At
first, I planned to reformat a MIME message into a tentative format
that was used by mime.el, a simple MIME composer. But, at that time,
Emacs did not support an easy way to show images in an Emacs buffer.
Therefore, I suspended to realize the idea, and just used metamail
tentatively. Unfortunately, I have no time to realize the idea right
now :-<
Following your idea will work well for text/plan of us-ascii charset
in 7bit transfer-encoding. In case of quoted-printable or base64
encoding, or non-us-ascii charsets, even if a message is text/plain,
it should be decoded and internalized according to its designated
charset to display it in an Emacs buffer. This means that a message
need to be decoded and its charset translated in an Emacs buffer.
Here, we have two choices; this buffer content supersedes an original
message in a RMAIL buffer, or this buffer is used only for display
like metamail. The former approach is useful for users of
non-us-ascii charsets, but it is necessary to rewrite a MIME header of
an original message in a RMAIL buffer appropriately. The same problem
exits in headers of an envelope. rmailmime.el provides
rmail-convert-mime-header to rewrite MIME-encoded headers of an
envelope as follows:
(setq rmail-message-filter 'rmail-convert-mime-header)
This function decodes and rewrites headers, such as Subject. Signed
messages make things more complex, but let us forget about this now.
It seems like the right thing to do is make the contents of the mime
parts invisible, excepting the text/plain parts. And then if you
click on one of the mime part headers followed by invisible contents,
it should display that mime part via metamail.
There could be commands such as C-c C-n and C-c C-p to move to the
next or previous mime part header.
I think it would be best not to pass any given mime part to metamail
unless/until the user goes to it and asks to see that part.
Masanobu Umeda
next prev parent reply other threads:[~2007-12-26 16:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1J1rk2-0004nx-Nx@fencepost.gnu.org>
[not found] ` <200712180040.JAA09104@latour.cad.ci.kyutech.ac.jp>
2007-12-23 21:12 ` rmailmime.el Richard Stallman
2007-12-26 16:20 ` Masanobu UMEDA [this message]
2007-12-31 14:42 ` rmailmime.el Richard Stallman
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200712261620.BAA23474@latour.cad.ci.kyutech.ac.jp \
--to=umerin@ci.kyutech.ac.jp \
--cc=emacs-devel@gnu.org \
--cc=rms@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.