From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: HTML mail in rmail Date: Fri, 11 Oct 2013 23:33:50 +0300 Message-ID: <83mwmfr1ht.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1381523657 17922 80.91.229.3 (11 Oct 2013 20:34:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Oct 2013 20:34:17 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ken Olum Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 11 22:34:21 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VUjPg-0006MP-DE for ged-emacs-devel@m.gmane.org; Fri, 11 Oct 2013 22:34:20 +0200 Original-Received: from localhost ([::1]:56230 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUjPg-0004EH-1R for ged-emacs-devel@m.gmane.org; Fri, 11 Oct 2013 16:34:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37383) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUjPX-0004Df-Dc for emacs-devel@gnu.org; Fri, 11 Oct 2013 16:34:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VUjPQ-0006ex-Id for emacs-devel@gnu.org; Fri, 11 Oct 2013 16:34:11 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:40285) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUjPQ-0006es-At for emacs-devel@gnu.org; Fri, 11 Oct 2013 16:34:04 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MUI00000UFVL400@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Fri, 11 Oct 2013 23:34:02 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MUI000TGUGQKY00@a-mtaout20.012.net.il>; Fri, 11 Oct 2013 23:34:02 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:164118 Archived-At: > From: Ken Olum > Date: Fri, 11 Oct 2013 16:21:05 -0400 > > What are people doing about HTML mail in the new mime-enabled rmail? > A big fraction of mail nowadays is either entirely HTML, or it is > multipart/alternative, but the text part just says to see the HTML. > In the current world (at least in emacs 23.3, and it looks like the > emacs-24 code is the same), if the message is entirely HTML, it just > displays the HTML, which is fine if the actual text is legible, but > otherwise not much use. In the multipart/alternative case, it shows > the useless text/plain part and you can show the HTML if you wish, but > it might be illegible. > > I tried changing rmail-mime-process to treat text/html as bulk, and > then I can click "Save" and read it in my browser, but that is not > very convenient, especially if I want to be able to move around easily > among my messages using rmail commands. > > The ideal thing from my point of view would be to display the HTML as > text. It seems that emacs has plenty of support for such conversions, > but rmail seems not to use it. Have I missed some feature? If not, > has someone thought about how to implement this? You should add an HTML handler to rmailmm.el, and in that handler call functions from shr.el, which implements an HTML renderer. That would be indeed a great feature.