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#10078: 23.3; Rmail's rmail-mine command (v) does not correctly display raw message when rmail-enable mime is true (default) Date: Sat, 19 Nov 2011 13:17:33 -0800 Message-ID: <878vnberrm.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 1321737547 24687 80.91.229.12 (19 Nov 2011 21:19:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 19 Nov 2011 21:19:07 +0000 (UTC) To: 10078@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 19 22:19:03 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 1RRsJS-0007Yz-Ra for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Nov 2011 22:19:03 +0100 Original-Received: from localhost ([::1]:41684 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRsJS-0003z3-DL for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Nov 2011 16:19:02 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:35729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRsJP-0003yg-K8 for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2011 16:19:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RRsJO-0003ya-AF for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2011 16:18:59 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56565) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRsJO-0003yW-8K for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2011 16:18:58 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RRsKQ-00037I-8Q for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2011 16:20:02 -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: Sat, 19 Nov 2011 21:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10078 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.132173754611891 (code B ref -1); Sat, 19 Nov 2011 21:20:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Nov 2011 21:19:06 +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 1RRsJW-00035k-LZ for submit@debbugs.gnu.org; Sat, 19 Nov 2011 16:19:06 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RRsJT-00035b-Ff for submit@debbugs.gnu.org; Sat, 19 Nov 2011 16:19:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RRsIO-0003eg-Qg for submit@debbugs.gnu.org; Sat, 19 Nov 2011 16:17:59 -0500 Original-Received: from lists.gnu.org ([140.186.70.17]:49918) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRsIO-0003eW-PF for submit@debbugs.gnu.org; Sat, 19 Nov 2011 16:17:56 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:35618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRsIM-0003oJ-To for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2011 16:17:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RRsIL-0003eC-IS for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2011 16:17:54 -0500 Original-Received: from madara.hpl.hp.com ([192.6.19.124]:54293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRsIL-0003ds-7V for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2011 16:17:53 -0500 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 pAJLHocZ005412 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 19 Nov 2011 13:17:50 -0800 Original-Received: from MDL ([16.213.66.251]) by masterns.hpl.hp.com (8.14.3/8.14.3/HPL-PA Hub) with ESMTP id pAJLHkBQ028025; Sat, 19 Nov 2011 13:17:47 -0800 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, 19 Nov 2011 16:20:02 -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:54072 Archived-At: This is probably more of a command fails to do the expected and useful thing rather than strictly a bug. The help documentation for this command is as follows: v runs the command rmail-mime, which is an interactive compiled Lisp function in `rmailmm.el'. It is bound to v. (rmail-mime &optional ARG) Toggle displaying of a MIME message. The actualy behavior depends on the value of `rmail-enable-mime'. If `rmail-enable-mime' is t (default), this command change the displaying of a MIME message between decoded presentation form and raw data. With ARG, toggle the displaying of the current MIME entity only. If `rmail-enable-mime' is nil, this creates a temporary "*RMAIL*" buffer holding a decoded copy of the message. Inline content-types are handled according to `rmail-mime-media-type-handlers-alist'. By default, this displays text and multipart messages, and offers to download attachments as specfied by `rmail-mime-attachment-dirs-alist'. From "displaying of a MIME message between decoded presentation form and raw data", I would assume this command would toggle between the normal display of a message and it's raw undecoded form. What it actually does is a very weird hybrid where you get raw data for the parts but the boundaries are still decoded (e.g., missing). An example probably helps here. Consider the following message as it is normally presented: Date: Sat, 19 Nov 2011 13:02:35 -0800 Subject: this message has a text and HTML part From: Mark Lillibridge To: mdl@alum.mit.edu [1:text/plain Hide] *this *is bold. [2:text/html Show] When you hit 'v', this switches to (I've replaced a lot of headers with ...): >From mdl Sat Nov 19 13:03:52 2011 Return-Path: Received: from pobox-pa.hpl.hp.com [15.25.112.25] by ts-rhel5 with IMAP (fetchmail-6.3.6) for (single-drop); Sat, 19 Nov 2011 13:03:52 -0800 (PST) ... MIME-Version: 1.0 Message-ID: Subject: this message has a text and HTML part From: Mark Lillibridge To: mdl@alum.mit.edu Content-Type: multipart/alternative; boundary=bcaec53aec3ee5f3fe04b21cc50d ... X-RMAIL-ATTRIBUTES: -------- Content-Type: text/plain; charset=ISO-8859-1 *this *is bold. Content-Type: text/html; charset=ISO-8859-1 this is bold.

For comparison, the actual raw message body looks like: --bcaec53aec3ee5f3fe04b21cc50d Content-Type: text/plain; charset=ISO-8859-1 *this *is bold. --bcaec53aec3ee5f3fe04b21cc50d Content-Type: text/html; charset=ISO-8859-1 this is bold.

--bcaec53aec3ee5f3fe04b21cc50d-- I can't for the life of me figure out what the hybrid version is useful for. It's very hard to tell where the different parts begin and end. This command can individually toggle parts to showing raw decoding via C-u v; for example, here's what it looks like with only the second part decoded: Date: Sat, 19 Nov 2011 13:02:35 -0800 Subject: this message has a text and HTML part From: Mark Lillibridge To: mdl@alum.mit.edu [1:text/plain Hide] *this *is bold. Content-Type: text/html; charset=ISO-8859-1 this is bold.

I don't understand why this is useful either. Can someone please explain why either of these abilities are useful? I know do want the the show raw message command from to time to time and that is what the help message seems to promise so I'd recommend replacing the current 'v' functionality (with rmail-enable-mime t) with a simple toggle to show raw message command. This would have the advantage of also being symmetrical with the rmail-enable-mime nil case. - Mark