From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Rost Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#4624: 23.1.50; rmail-edit may add incorrect content-type header Date: Sat, 3 Oct 2009 16:55:21 +0200 (CEST) Message-ID: <20091003145521.27A06288A0AB@xen12.math.uni-bielefeld.de> Reply-To: Markus Rost , 4624@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1254620455 31895 80.91.229.12 (4 Oct 2009 01:40:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Oct 2009 01:40:55 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 04 03:40:49 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 1MuG5d-0005tE-76 for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Oct 2009 03:40:45 +0200 Original-Received: from localhost ([127.0.0.1]:34124 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MuG5c-0005GP-No for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Oct 2009 21:40:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mu6Cc-0003w5-H4 for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2009 11:07:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mu6CW-0003q8-Tc for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2009 11:07:17 -0400 Original-Received: from [199.232.76.173] (port=57095 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mu6CW-0003pr-JT for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2009 11:07:12 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35205) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mu6CV-0003bT-VG for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2009 11:07:12 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n93F78Qd006123; Sat, 3 Oct 2009 08:07:08 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n93F09qr004198; Sat, 3 Oct 2009 08:00:09 -0700 Resent-Date: Sat, 3 Oct 2009 08:00:09 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Markus Rost Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sat, 03 Oct 2009 15:00:09 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4624 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12545817263777 (code B ref -1); Sat, 03 Oct 2009 15:00:09 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 3 Oct 2009 14:55:26 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n93EtOQh003773 for ; Sat, 3 Oct 2009 07:55:25 -0700 Original-Received: from mx10.gnu.org ([199.232.76.166]:35350) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Mu616-0001tN-7H for emacs-pretest-bug@gnu.org; Sat, 03 Oct 2009 10:55:24 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Mu614-00025r-Tw for emacs-pretest-bug@gnu.org; Sat, 03 Oct 2009 10:55:24 -0400 Original-Received: from xen16.math.uni-bielefeld.de ([129.70.14.14]:57836) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mu614-00025f-H8 for emacs-pretest-bug@gnu.org; Sat, 03 Oct 2009 10:55:22 -0400 Original-Received: from xen12.math.uni-bielefeld.de (xen12.math.uni-bielefeld.de [129.70.14.133]) by xen16.math.uni-bielefeld.de (Postfix) with ESMTP id 2E1AA30072BE; Sat, 3 Oct 2009 16:55:21 +0200 (CEST) Original-Received: by xen12.math.uni-bielefeld.de (Postfix, from userid 3710) id 27A06288A0AB; Sat, 3 Oct 2009 16:55:21 +0200 (CEST) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sat, 03 Oct 2009 11:07:17 -0400 X-Mailman-Approved-At: Sat, 03 Oct 2009 21:40:20 -0400 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:31664 gmane.emacs.pretest.bugs:25093 Archived-At: In rmail look at a message (from an mbox file) with content-type multipart, e. g., with headers like Content-Type: multipart/alternative; boundary="bbbbbbbbbbb" Edit that message within rmail as usual with rmail-edit-current-message and rmail-cease-edit. After saving, the message has an *additional* header like Content-type: text/plain; charset=us-ascii This is bad, since mail readers may not handle the message correctly as multipart anymore. The reason is that rmail-cease-edit uses rmail-mime-charset-pattern to identify content-type headers, but rmail-mime-charset-pattern will match by default only text/plain. I am not sure how to fix this. Ideally rmail-cease-edit should walk through all the parts of a message when handling the coding, but that looks very complicated. Maybe for now rmail-cease-edit should handle the coding only if there is no content-type header or if the content-type is matched by rmail-mime-charset-pattern, leaving the other cases to the responsibilty of the user. In GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.16.1) of 2009-10-02 on laptop Windowing system distributor `The X.Org Foundation', version 11.0.10600000 configured using `configure '--prefix=/home/rost/local/cvs'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t