From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#9392: 24.0.50; rmail-forward produces messages in unsupported format that cannot be customized away Date: Sun, 28 Aug 2011 05:21:42 -0400 Message-ID: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1314523338 10811 80.91.229.12 (28 Aug 2011 09:22:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 28 Aug 2011 09:22:18 +0000 (UTC) To: 9392@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 28 11:22:14 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 1QxbZE-0006hk-BX for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Aug 2011 11:22:12 +0200 Original-Received: from localhost ([::1]:48524 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxbZD-0006PR-MV for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Aug 2011 05:22:11 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47891) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxbZB-0006PK-Fy for bug-gnu-emacs@gnu.org; Sun, 28 Aug 2011 05:22:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QxbZA-0007bL-6m for bug-gnu-emacs@gnu.org; Sun, 28 Aug 2011 05:22:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37681) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxbZA-0007b2-2K for bug-gnu-emacs@gnu.org; Sun, 28 Aug 2011 05:22:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qxbby-0002Vu-Ln; Sun, 28 Aug 2011 05:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Aug 2011 09:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9392 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.13145234899630 (code B ref -1); Sun, 28 Aug 2011 09:25:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Aug 2011 09:24:49 +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 1Qxbbk-0002VG-CG for submit@debbugs.gnu.org; Sun, 28 Aug 2011 05:24:48 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qxbbd-0002Uz-Ag for submit@debbugs.gnu.org; Sun, 28 Aug 2011 05:24:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QxbYm-0007GX-So for submit@debbugs.gnu.org; Sun, 28 Aug 2011 05:21:46 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:45326) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxbYm-0007GT-RL for submit@debbugs.gnu.org; Sun, 28 Aug 2011 05:21:44 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxbYl-0006HX-Gr for bug-gnu-emacs@gnu.org; Sun, 28 Aug 2011 05:21:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QxbYk-0007Ft-7w for bug-gnu-emacs@gnu.org; Sun, 28 Aug 2011 05:21:43 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:42532) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxbYk-0007Fp-6M for bug-gnu-emacs@gnu.org; Sun, 28 Aug 2011 05:21:42 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1QxbYk-0005wq-0P for bug-gnu-emacs@gnu.org; Sun, 28 Aug 2011 05:21:42 -0400 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: Sun, 28 Aug 2011 05:25:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) 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:50389 Archived-At: Typing `f' (rmail-forward) in an Rmail buffer produces this line: <#part type=message/rfc822 disposition=inline raw=t> followed by the headers and the body of the forwarded message. This happens because rmail-forward was changed some time ago to call message-forward-make-body-mime (through rmail-insert-mime-forwarded-message-function), like this: (if (or rmail-enable-mime rmail-enable-mime-composing) (funcall rmail-insert-mime-forwarded-message-function forward-buffer) (insert "------- Start of forwarded message -------\n") Q1: Where is this format documented? any RFCs or some such? I couldn't find any spec with this format, but I don't really know what to look for, not being an expert on these issues. Q2: Which MUAs support this format on reception, and can show the forwarded message in a reasonably useful form? Rmail certainly doesn't; I also tried Outlook and a couple Web-based mail systems -- none of them did. What I see is the raw message, complete with b64 encoded attachments -- entirely illegible. If this format is not widely supported, why does it make sense to generate it by default? At the very least, Rmail should support that, or stop using it by default. The bug: The way the code invoking message-forward-make-body-mime is written, it is impossible to customize away this "feature" without disabling rmail-enable-mime, which disables a lot of other useful features. At the very least, it should be possible to disable this "feature" alone, by customizing rmail-enable-mime-composing. This could be as a simple as replacing `or' with `and' in the above condition. In GNU Emacs 24.0.50.81 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2011-08-28 on fencepost configured using `configure '--with-gif=no' '--with-tiff=no' '--enable-asserts' '--enable-checking' 'CFLAGS=-ggdb -g3 -O0 -DGLYPH_DEBUG=1'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: RMAIL Minor modes in effect: shell-dirtrack-mode: t display-time-mode: t show-paren-mode: t savehist-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t Recent input: p ESC p RET C-r ESC O A ESC O C C-x b RET C-x b r m a i TAB . e TAB RET ESC O B ESC O B ESC O A ESC O A ESC O A ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D C-r C-w C-w C-w C-w C-r C-r C-x C-x ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D C-r C-w C-w C-w C-r C-r C-r C-r C-r C-r C-r C-r C-r C-r C-r C-r C-r C-r C-r C-r C-r C-r C-x C-x ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O D C-r C-w C-w C-w C-w C-r C-r C-r C-x C-x C-s C-s C-s C-x C-x C-a C-x b RET ESC x r e p o r t TAB RET Recent messages: Saving file /home/e/eliz/mail.n2... Wrote /home/e/eliz/mail.n2 Getting mail from /srv/data/home/e/eliz/mail.n2... Counting new messages...done (1) Saving file /home/e/eliz/INBOX... Wrote /home/e/eliz/INBOX [2 times] Computing summary lines...done 1 new message read scroll-down-command: Beginning of buffer Mark saved where search started [9 times] Load-path shadows: None found. Features: (shadow emacsbug help-fns help-mode view cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs multi-isearch vc-bzr newcomment flyspell ispell sendmail shell pcomplete comint regexp-opt ring qp rmailsum rmailmm message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader mail-parse rfc2231 rmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time paren cus-start cus-load time-date savehist saveplace tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dynamic-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)