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: Tue, 15 Nov 2011 10:05:52 -0800 Message-ID: References: <878vocna2g.fsf@hp.com> Reply-To: mark.lillibridge@hp.com NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1321380400 19653 80.91.229.12 (15 Nov 2011 18:06:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 15 Nov 2011 18:06:40 +0000 (UTC) Cc: 9840@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 15 19:06:36 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 1RQNP1-0005DP-5u for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Nov 2011 19:06:35 +0100 Original-Received: from localhost ([::1]:57016 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQNP0-0006uU-FR for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Nov 2011 13:06:34 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:42219) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQNOu-0006uP-Vo for bug-gnu-emacs@gnu.org; Tue, 15 Nov 2011 13:06:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RQNOn-0003jw-PT for bug-gnu-emacs@gnu.org; Tue, 15 Nov 2011 13:06:28 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49216) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQNOn-0003jm-Ny for bug-gnu-emacs@gnu.org; Tue, 15 Nov 2011 13:06:21 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RQNPR-00076v-S9; Tue, 15 Nov 2011 13:07:01 -0500 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: Tue, 15 Nov 2011 18:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9840 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 9840-submit@debbugs.gnu.org id=B9840.132138041427320 (code B ref 9840); Tue, 15 Nov 2011 18:07:01 +0000 Original-Received: (at 9840) by debbugs.gnu.org; 15 Nov 2011 18:06:54 +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 1RQNPG-00076X-75 for submit@debbugs.gnu.org; Tue, 15 Nov 2011 13:06:54 -0500 Original-Received: from gundega.hpl.hp.com ([192.6.19.190]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RQNPA-00076J-VR for 9840@debbugs.gnu.org; Tue, 15 Nov 2011 13:06:49 -0500 Original-Received: from mailhub-pa1.hpl.hp.com (mailhub-pa1.hpl.hp.com [15.25.115.25]) by gundega.hpl.hp.com (8.14.4/8.14.4/HPL-PA Relay) with ESMTP id pAFI5uc9010987 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 15 Nov 2011 10:05:56 -0800 Original-Received: from ts-rhel5 (ts-rhel5.hpl.hp.com [15.25.118.27]) by mailhub-pa1.hpl.hp.com (8.14.3/8.14.3/HPL-PA Hub) with ESMTP id pAFI5qaP007167; Tue, 15 Nov 2011 10:05:52 -0800 In-reply-to: (message from Eli Zaretskii on Tue, 15 Nov 2011 07:24:15 -0500) X-Scanned-By: MIMEDefang 2.71 on 15.0.48.190 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 15 Nov 2011 13:07:01 -0500 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:53941 Archived-At: Eli Zaretskii wrote: > > From: Glenn Morris > > Date: Tue, 15 Nov 2011 03:56:13 -0500 > > Cc: 9840@debbugs.gnu.org, mark.lillibridge@hp.com > > > > > > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9840 > > > > seems like a pretty serious problem with Emacs 23.3+'s rmail mime > > handling. Any ideas on how to fix this? > > Do the equivalent of `v' (rmail-mime) to get the rmail-view-buffer to > its original non-MIME state, let the user edit it, then replace the > message text in the rmail-buffer (mbox format) with the results of > editing, and redisplay the message? I think that's what 'e' should do. Note that 'v' currently fails to show the raw message -- I haven't had a chance to submit a complaint about that behavior yet. Should think about fixing bug 9841 while you're at it. I'm thinking at the moment we should just refuse to accept edits that include (new) From lines, allowing the user to decide how they want to quote them manually. (Put point on start of From line and signal an error?) In the future, (this probably qualifies as a wish list item), it would be nice if there was a way to edit individual MIME parts. For example, hitting 'E' adds [edit] buttons to each MIME part. Selecting such a button brings up the new edit buffer with the contents of that decoded MIME part. After the user edited the part, it would be re-encoded and replace the original version in the original message. This extension would make it easy to edit printable and base64 parts. Trying to synchronize the two buffers might be a pain though so this extension probably needs more thought before trying implement anything. - Mark