From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#2015: 23.0.60; Rmail decodes messages incorrectly Date: Sat, 31 Jan 2009 10:37:16 -0500 Message-ID: <878wor32s3.fsf@cyd.mit.edu> Reply-To: Chong Yidong , 2015@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233417827 8917 80.91.229.12 (31 Jan 2009 16:03:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Jan 2009 16:03:47 +0000 (UTC) Cc: 2015@emacsbugs.donarmstrong.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 31 17:05:00 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LTIL5-00086Y-UK for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Jan 2009 17:05:00 +0100 Original-Received: from localhost ([127.0.0.1]:56901 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTIJn-0004k0-Oh for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Jan 2009 11:03:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LTIJi-0004jR-TS for bug-gnu-emacs@gnu.org; Sat, 31 Jan 2009 11:03:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LTIJh-0004il-Da for bug-gnu-emacs@gnu.org; Sat, 31 Jan 2009 11:03:34 -0500 Original-Received: from [199.232.76.173] (port=56160 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTIJh-0004ih-Ag for bug-gnu-emacs@gnu.org; Sat, 31 Jan 2009 11:03:33 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:34862) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LTIJg-0007Jh-FP for bug-gnu-emacs@gnu.org; Sat, 31 Jan 2009 11:03:32 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0VG3Uhm013578; Sat, 31 Jan 2009 08:03:30 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0VFj4YY009061; Sat, 31 Jan 2009 07:45:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Chong Yidong Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com Resent-Date: Sat, 31 Jan 2009 15:45:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2015 X-Emacs-PR-Package: emacs,rmail X-Emacs-PR-Keywords: Original-Received: via spool by 2015-submit@emacsbugs.donarmstrong.com id=B2015.12334162047706 (code B ref 2015); Sat, 31 Jan 2009 15:45:03 +0000 Original-Received: (at 2015) by emacsbugs.donarmstrong.com; 31 Jan 2009 15:36:44 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0VFagiU007700 for <2015@emacsbugs.donarmstrong.com>; Sat, 31 Jan 2009 07:36:43 -0800 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 00FF157E1FC; Sat, 31 Jan 2009 10:37:16 -0500 (EST) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sat, 31 Jan 2009 11:03:34 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:24774 Archived-At: > Rmail does not correctly decode quoted-printable messages. For > example, a message that has these headers: > > Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; > format=flowed > Content-Transfer-Encoding: quoted-printable > > Shows a Windows-1252 character \226 as an octal escape, and says that > the buffer's encoding is undecided-unix. > > In addition, Rmail before mbox merge would rewrite > Content-Transfer-Encoding header into "8-bit", when it decoded the > quoted-printable encoding, but the current Rmail does not. IIUC, the new Rmail decodes quoted-printable messages during message display, leaving the original message unchanged in the Rmail file. That's why it does not change Content-Transfer-Encoding to "8bit". I don't see why Rmail would fail to correctly decode a message with the headers you provided. Here's a shot in the dark: if you add the line (setq last-coding-system-used nil) to line 2564 of rmail.el, just before the call to rmail-decode-region, is there any improvement?