unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Mark Lillibridge <mark.lillibridge@hp.com>
To: 9840@debbugs.gnu.org
Subject: bug#9840: 23.3; rmail-edit-current-message destroys MIME messages [SEVERE]
Date: Sat, 22 Oct 2011 11:41:11 -0700	[thread overview]
Message-ID: <878vocna2g.fsf@hp.com> (raw)


    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





             reply	other threads:[~2011-10-22 18:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-22 18:41 Mark Lillibridge [this message]
2011-11-15  8:56 ` bug#9840: 23.3; rmail-edit-current-message destroys MIME messages [SEVERE] Glenn Morris
2011-11-15 12:24   ` Eli Zaretskii
2011-11-15 17:52     ` Glenn Morris
2011-11-16  2:10       ` Glenn Morris
2011-11-15 18:05     ` Mark Lillibridge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878vocna2g.fsf@hp.com \
    --to=mark.lillibridge@hp.com \
    --cc=9840@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).