From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark Lillibridge Newsgroups: gmane.emacs.bugs Subject: bug#9840: 23.3; rmail-edit-current-message destroys MIME messages [SEVERE] Date: Sat, 22 Oct 2011 11:41:11 -0700 Message-ID: <878vocna2g.fsf@hp.com> Reply-To: mark.lillibridge@hp.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1319308973 5893 80.91.229.12 (22 Oct 2011 18:42:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 22 Oct 2011 18:42:53 +0000 (UTC) To: 9840@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 22 20:42:49 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RHgWt-0000q6-2D for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Oct 2011 20:42:47 +0200 Original-Received: from localhost ([::1]:43231 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHgWs-0002nb-As for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Oct 2011 14:42:46 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHgWp-0002nV-FY for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2011 14:42:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHgWo-0001H3-GD for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2011 14:42:43 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60839) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHgWo-0001Gz-DA for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2011 14:42:42 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RHgY7-0005QE-3Y for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2011 14:44:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mark Lillibridge Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Oct 2011 18:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9840 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.131930898720769 (code B ref -1); Sat, 22 Oct 2011 18:44:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Oct 2011 18:43:07 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RHgXD-0005Ov-L0 for submit@debbugs.gnu.org; Sat, 22 Oct 2011 14:43:07 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RHgXA-0005OS-88 for submit@debbugs.gnu.org; Sat, 22 Oct 2011 14:43:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHgVl-0001DP-95 for submit@debbugs.gnu.org; Sat, 22 Oct 2011 14:41:38 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:52762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHgVl-0001DJ-6J for submit@debbugs.gnu.org; Sat, 22 Oct 2011 14:41:37 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33583) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHgVj-0002m6-VQ for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2011 14:41:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHgVi-0001D4-T7 for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2011 14:41:35 -0400 Original-Received: from madara.hpl.hp.com ([192.6.19.124]:45655) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHgVi-0001BI-LG for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2011 14:41:34 -0400 Original-Received: from masterns.hpl.hp.com (masterns.hpl.hp.com [15.0.48.4]) by madara.hpl.hp.com (8.14.4/8.14.4/HPL-PA Relay) with ESMTP id p9MIfIsm004746 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 22 Oct 2011 11:41:19 -0700 Original-Received: from MDL ([16.213.31.72]) by masterns.hpl.hp.com (8.14.3/8.14.3/HPL-PA Hub) with ESMTP id p9MIfE1L032724; Sat, 22 Oct 2011 11:41:15 -0700 X-Scanned-By: MIMEDefang 2.71 on 15.0.152.124 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 22 Oct 2011 14:44:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:53025 Archived-At: In gnuemacs 23.3.1 (or earlier?), displaying of MIME text parts got turned on by default. E.g., buttons like: [1/1:text/plain Hide] appear in the message body displayed followed by the decoded text part. When you invoke message editing via 'e', rmailedit.el assumes (mistakenly) that it is dealing with a normal message body (e.g., not decoded) and lets you edit the buttons and decoded text. Far, far worse, when you finish editing, rmailedit.el replaces the original valid message with the decoded text! This destroys all the nontext parts and put the button text in the message itself. Worse, if you realize something is wrong and attempt to abort the edit via ^c^[, your message is still destroyed since rmail-abort-edit just restores the "message text" (e.g., the decoded view) then calls the normal edit exit code (rmail-cease-edit). To add to the fun, if you attempt to abort editing by killing the rmail buffer, you will lose any other changes made to that mbox file, including the incorporation of new mail. Executive summary: if you press 'e' (even accidentally) in Rmail mode while viewing a MIME message, it will be destroyed the matter what you do. - Mark