GNU bug report logs -
#9840
23.3; rmail-edit-current-message destroys MIME messages [SEVERE]
Previous Next
Reported by: mark.lillibridge <at> hp.com
Date: Sat, 22 Oct 2011 18:44:02 UTC
Severity: serious
Tags: confirmed, fixed
Merged with 13209
Found in version 23.3
Fixed in version 24.0.92
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9840 in the body.
You can then email your comments to 9840 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#9840
; Package
emacs
.
(Sat, 22 Oct 2011 18:44:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
mark.lillibridge <at> hp.com
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 22 Oct 2011 18:44:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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
Severity set to 'serious' from 'normal'
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 15 Nov 2011 03:35:02 GMT)
Full text and
rfc822 format available.
Added tag(s) confirmed.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 15 Nov 2011 03:35:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#9840
; Package
emacs
.
(Tue, 15 Nov 2011 08:57:02 GMT)
Full text and
rfc822 format available.
Message #12 received at 9840 <at> debbugs.gnu.org (full text, mbox):
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?
(It happens in 23.3 as well, so is not related to bug#9520.)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#9840
; Package
emacs
.
(Tue, 15 Nov 2011 12:26:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 9840 <at> debbugs.gnu.org (full text, mbox):
> From: Glenn Morris <rgm <at> gnu.org>
> Date: Tue, 15 Nov 2011 03:56:13 -0500
> Cc: 9840 <at> debbugs.gnu.org, mark.lillibridge <at> 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?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#9840
; Package
emacs
.
(Tue, 15 Nov 2011 17:54:01 GMT)
Full text and
rfc822 format available.
Message #18 received at 9840 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii wrote:
> Do the equivalent of `v' (rmail-mime) to get the rmail-view-buffer to
> its original non-MIME
I think your method is right; except currently this doesn't work because
of bug#9520.
> 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?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#9840
; Package
emacs
.
(Tue, 15 Nov 2011 18:07:01 GMT)
Full text and
rfc822 format available.
Message #21 received at 9840 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii wrote:
> > From: Glenn Morris <rgm <at> gnu.org>
> > Date: Tue, 15 Nov 2011 03:56:13 -0500
> > Cc: 9840 <at> debbugs.gnu.org, mark.lillibridge <at> 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
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#9840
; Package
emacs
.
(Wed, 16 Nov 2011 02:12:02 GMT)
Full text and
rfc822 format available.
Message #24 received at 9840 <at> debbugs.gnu.org (full text, mbox):
Glenn Morris wrote:
> Eli Zaretskii wrote:
>
>> Do the equivalent of `v' (rmail-mime) to get the rmail-view-buffer to
>> its original non-MIME
>
> I think your method is right; except currently this doesn't work because
> of bug#9520.
Actually 9520 does not seem to be relevant, because rmail-mime does not
seem to offer a way to show the raw message. Toggling rmail-mime off is
not the same as viewing a message with rmail-enable-mime nil. The mime
boundaries are always absent.
Anyway, I installed something that hopefully stops rmailedit destroying
messages. I hope Rmail users will test it.
Feel free to rip this out and replace it with something more elegant...
Added tag(s) fixed.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 16 Nov 2011 19:57:01 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 24.0.92, send any further explanations to
9840 <at> debbugs.gnu.org and mark.lillibridge <at> hp.com
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sun, 20 Nov 2011 02:31:01 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 18 Dec 2011 12:24:03 GMT)
Full text and
rfc822 format available.
bug unarchived.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Mon, 17 Dec 2012 17:06:02 GMT)
Full text and
rfc822 format available.
Forcibly Merged 9840 13209.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Mon, 17 Dec 2012 17:06:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 15 Jan 2013 12:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 305 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.