From: Katsumi Yamaoka <yamaoka@jpl.org>
To: 27141@debbugs.gnu.org
Cc: larsi@gnus.org
Subject: bug#27141: 26.0.50; mml-generate-mime-1 broken
Date: Tue, 30 May 2017 15:09:28 +0900 [thread overview]
Message-ID: <b4mwp8y98pz.fsf@jpl.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1302 bytes --]
Hi,
I noticed this when I forwarded a mail using Gnus. The problem
is that non-ASCII letters contained in the header of the original
mail will not be encoded properly. The rough outline of what
`mml-generate-mime-1' does then are:
・Insert the original mail (decoded) into a unibyte buffer
(that with-temp-buffer of mml.el-[line:619] generates).
・Detect the charset of the contents.
・Encode the contents by that detected charset.
・Insert the encoded contsnts into the other unibyte buffer
(that with-temp-buffer of mml.el-[line:612] generates).
・Run `mml-to-mime' that encodes the header of the original mail
using `mail-encode-encoded-word-buffer' (an alias to
`rfc2047-encode-message-header').
rfc2047's encoder expects human readable text, however, there
are encoded ones as described above. So, as for at least mail
forwarding, `mml-generate-mime-1' is seriously broken.
The current code looks like WIP to me. How about reverting it
to the emacs-25 version? Slightly modernized[1] one is attached.
[1] Don't use old compat functions and string-as-(multi|uni)byte.
In GNU Emacs 26.0.50 (build 1, i686-pc-cygwin, GTK+ Version 3.18.9)
of 2017-05-30 built on localhost
Windowing system distributor 'The Cygwin/X Project', version 11.0.11900000
[-- Attachment #2: Type: application/emacs-lisp, Size: 9199 bytes --]
next reply other threads:[~2017-05-30 6:09 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-30 6:09 Katsumi Yamaoka [this message]
2017-05-31 23:21 ` bug#27141: 26.0.50; mml-generate-mime-1 broken Katsumi Yamaoka
2017-06-01 5:20 ` Lars Ingebrigtsen
2017-06-01 6:15 ` Katsumi Yamaoka
2017-06-01 7:17 ` Lars Ingebrigtsen
2017-06-01 8:32 ` Katsumi Yamaoka
2017-09-02 14:05 ` Eli Zaretskii
2017-09-03 23:37 ` Katsumi Yamaoka
2017-09-13 17:36 ` Lars Ingebrigtsen
2017-09-13 18:41 ` Eli Zaretskii
2017-09-13 18:45 ` Lars Ingebrigtsen
2017-09-13 19:14 ` Eli Zaretskii
2017-09-13 19:18 ` Lars Ingebrigtsen
2019-09-23 18:15 ` Lars Ingebrigtsen
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b4mwp8y98pz.fsf@jpl.org \
--to=yamaoka@jpl.org \
--cc=27141@debbugs.gnu.org \
--cc=larsi@gnus.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 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).