From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#9766: 24.0.50; rmail-forward makes attachment that doesn't read right Date: Mon, 17 Oct 2011 21:00:55 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1318899741 26413 80.91.229.12 (18 Oct 2011 01:02:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 18 Oct 2011 01:02:21 +0000 (UTC) Cc: 9766@debbugs.gnu.org To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 18 03:02:15 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 1RFy4N-00019C-OE for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Oct 2011 03:02:15 +0200 Original-Received: from localhost ([::1]:42506 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFy4N-0001UE-C3 for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Oct 2011 21:02:15 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54188) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFy4J-0001TM-N3 for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2011 21:02:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFy4G-0004vz-Mf for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2011 21:02:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFy4G-0004vo-Kl for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2011 21:02:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RFy58-0002Dq-Cb for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2011 21:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Oct 2011 01:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9766 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9766-submit@debbugs.gnu.org id=B9766.13188997288463 (code B ref 9766); Tue, 18 Oct 2011 01:03:02 +0000 Original-Received: (at 9766) by debbugs.gnu.org; 18 Oct 2011 01:02:08 +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 1RFy4F-0002CQ-K8 for submit@debbugs.gnu.org; Mon, 17 Oct 2011 21:02:08 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RFy43-0002Bk-Mg; Mon, 17 Oct 2011 21:02:05 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnEHAP/OnE5MCqLO/2dsb2JhbABDmXWOYoEGgW4BAQQBViMFCws0EhQYDYg2twmICAShKYRF X-IronPort-AV: E=Sophos;i="4.69,362,1315195200"; d="scan'208";a="142554115" Original-Received: from 76-10-162-206.dsl.teksavvy.com (HELO pastel.home) ([76.10.162.206]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 17 Oct 2011 21:00:55 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 93D285920F; Mon, 17 Oct 2011 21:00:55 -0400 (EDT) In-Reply-To: (Richard Stallman's message of "Mon, 17 Oct 2011 17:42:27 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 17 Oct 2011 21:03:02 -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:52754 Archived-At: > For the MIME version. > I think what needs to be done is to copy into the buffer where mail is > composed the message in the original form, not in the form we put into > the rmail-view-buffer. > No. That had the bug (the one reported before), I'm not sure which bug this refers to. But a MIME forward should contain an "original form" email message. You can strip some of the headers if you want, but it should contain non-decoded content. > and it also is an ugly pain in the neck. Do you say that because it makes the underlying encoded message visible? If so, it's a presentation problem: the content of the sent message should be "ugly" but there's no reason it should ever be displayed in this ugly form. > Anyway, if you want to forward the raw form, all you have to do is > type v. That works, too. Not using Rmail myself, I don't know what `v' runs. > For the definitive answer, I suggest to start Emacs with the default > value of mail-user-agent, start Rmail, forward (to yourself) a message > with attachments, and then look at hoe message.el did it. > But that is not conclusive. What we need is a person who knows MIME > well enough to look at the generated text, and tell us if it has an error. I haven't touched MIME in a while, but back when I was hacking on the PGP support for ExMH, I was reasonably up-to-date in MIME. To me the message you showed looked OK except for the "--text follows this line--" which should be an empty line, but I think this is just the "in buffer" text and that line is turned into an empty line when you send the message. Other than that it also seems to lack another part: it has a first part of type message/rfc822 and a second one of type text/plain, but you'll usually want to add a first part of type text/plain where you can put some text of your own making. Stefan PS: Reminds me that I think this "--text follows this line--" should be changed: instead of actual real text in the buffer, it should be an overlay's after-string covering the empty line.