Subject: bug#7626: 23.2.91; Rmail shows incorrect message encoding in the mode line

From: Kenichi Handa <[email-masked]>
Date: Mon, 13 Dec 2010 09:29:01 +0900

In article <[email-masked]>, Eli Zaretskii <[email-masked]> writes:

> The new rmail-mime feature causes Rmail to set
> buffer-file-coding-system to an incorrect value.  Expected result:
> buffer-file-coding-system is according to the charset= header, but in
> fact buffer-file-coding-system is almost always set to undecided.

> This is a regression from Emacs 23.2.90.

> Also, once the headers were decoded by rfc2047-decode-region, it would
> be good to set buffer-file-coding-system to last-coding-system-used,
> if the buffer's encoding is still undecided.

I'm now working on various bug-fixing and improvement of
rmail's mime handling, and fixing the above is included in
the work.  The problem is that which coding system to set if
the header and each text part of multipart have different
"charset".  At the moment, I'm going to commit a code that
set the FIRST coding system used for decoding some part
(header, parts of multipart, forwarded message, etc).

---
Kenichi Handa
[email-masked]