From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: improve rmail's MIME handling Date: Fri, 26 Nov 2010 13:24:09 +0900 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1290745469 3238 80.91.229.12 (26 Nov 2010 04:24:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 26 Nov 2010 04:24:29 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 26 05:24:25 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PLprE-0008RA-SC for ged-emacs-devel@m.gmane.org; Fri, 26 Nov 2010 05:24:25 +0100 Original-Received: from localhost ([127.0.0.1]:36478 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLprD-0003IB-QF for ged-emacs-devel@m.gmane.org; Thu, 25 Nov 2010 23:24:23 -0500 Original-Received: from [140.186.70.92] (port=47594 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLpr8-0003I4-4F for emacs-devel@gnu.org; Thu, 25 Nov 2010 23:24:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PLpr6-0005mL-E5 for emacs-devel@gnu.org; Thu, 25 Nov 2010 23:24:18 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:46107) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PLpr5-0005ls-VT for emacs-devel@gnu.org; Thu, 25 Nov 2010 23:24:16 -0500 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id oAQ4OAnC011396; Fri, 26 Nov 2010 13:24:10 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id oAQ4OA8l016132; Fri, 26 Nov 2010 13:24:10 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp4.aist.go.jp with ESMTP id oAQ4O9FO011777; Fri, 26 Nov 2010 13:24:09 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.71) (envelope-from ) id 1PLpqz-00023T-Ge; Fri, 26 Nov 2010 13:24:09 +0900 In-Reply-To: (message from Stefan Monnier on Fri, 12 Nov 2010 09:39:34 -0500) X-detected-operating-system: by eggs.gnu.org: Solaris 9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133145 Archived-At: In article , Stefan Monnier writes: > > patch for summary lines. Nowadays, not handling MIME > > properly is regarded as a bug, and thus I want to install it > > for Emacs 23. What do you think? > I'd agree. In article <87y68xmbec.fsf@stupidchicken.com>, Chong Yidong writes: > Please go ahead. Thanks. Ok. I've just installed changes which are bigger than what I expected at first. I first thought that we could use the code in rmailmm.el almost directly, but found some problems. Among them, these were fairly big problems: (1) It doesn't handle a nested multipart which typically happen in a message that contains forwarded multipart message. (2) Handling of a message that has big attachments is very slow because it builds decoded data string before just showing the button "Attached XXXX file: FILENAME.pdf (XXXkB)" We should build a data to be saved on the fly (i.e. after user's clicking). Now the default value of rmail-enable-mime is t, and thus a MIME message is properly decoded in RMAIL buffer automatically. One can still customize rmail-enable-mime to nil, and type the command 'v' to view a decoded message in the separete "*RMAIL*" buffer as before. By the way, in the long run, I think it is better to utilize gnus/mm*.el for rmail instead of further improving rmailmm.el. --- Kenichi Handa handa@m17n.org