From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/59746 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.gnus.general Subject: Re: viewing attachments Date: Tue, 08 Feb 2005 10:05:27 +1100 Organization: Bah Humbug Message-ID: <87acqgnf7s.fsf@zip.com.au> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1107876020 9741 80.91.229.2 (8 Feb 2005 15:20:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 8 Feb 2005 15:20:20 +0000 (UTC) Original-X-From: ding-owner+M8285@lists.math.uh.edu Tue Feb 08 16:20:20 2005 Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by ciao.gmane.org with esmtp (Exim 4.43) id 1CyX7o-0002qo-5R for ding-account@gmane.org; Tue, 08 Feb 2005 16:18:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1CyX7e-0005gg-00; Tue, 08 Feb 2005 09:17:50 -0600 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1CyHx1-0004JJ-00 for ding@lists.math.uh.edu; Mon, 07 Feb 2005 17:05:51 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1CyHwu-0005nQ-Il for ding@lists.math.uh.edu; Mon, 07 Feb 2005 17:05:44 -0600 Original-Received: from mailout1.pacific.net.au ([61.8.0.84]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1CyHwp-0001jR-00 for ; Tue, 08 Feb 2005 00:05:40 +0100 Original-Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.0.87]) by mailout1.pacific.net.au (8.12.3/8.12.3/Debian-7.1) with ESMTP id j17N5XA6019511 for ; Tue, 8 Feb 2005 10:05:33 +1100 Original-Received: from localhost (ppp22BA.dyn.pacific.net.au [61.8.34.186]) by mailproxy2.pacific.net.au (8.12.3/8.12.3/Debian-7.1) with ESMTP id j17N5W8v020096 for ; Tue, 8 Feb 2005 10:05:32 +1100 Original-Received: from gg by localhost with local (Exim 3.36 #1 (Debian)) id 1CyHwd-0000nO-00; Tue, 08 Feb 2005 10:05:27 +1100 Original-To: ding@gnus.org In-Reply-To: (Katsumi Yamaoka's message of "Mon, 07 Feb 2005 19:38:41 +0900") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) X-Spam-Score: -3.9 (---) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu X-MailScanner-From: ding-owner+m8285@lists.math.uh.edu X-MailScanner-To: ding-account@gmane.org Xref: main.gmane.org gmane.emacs.gnus.general:59746 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:59746 Katsumi Yamaoka writes: > > I had many opportunities to need to see attachments containing > non-ASCII text or parts which have been compressed by gzip or > bzip2. Handa made a change to jka-compr in the emacs cvs (2003-01-24), adding decode-coding-inserted-region which I believe is meant to do emacs' usual charset guessing and priorities, like find-file. I had meant to propose a patch (for gnus-mime-copy-part actually) to make use of that, either by copying that code from the cvs, or just using it if emacs is new enough to have it. Unfortunately I never got around to working out the details. > I hit on another idea while considering about it last week. The > plan is to add the charset parameter to the MIME header of an > attachment part automatically if there is a coding cookie in the > file and the MIME charset corresponding to it exists. If there's a cookie in the file, can't emacs just use that, without needing a mime charset parameter? > I've installed them (including decompressing of compressed parts) Maybe you can use jka-compr the same way that gnus-mime-jka-compr-maybe-uncompress does. Or that function becomes gnus-mime-copy-part-jka-insert with a patch I'm proposing - see other message. That would have the advantage of letting the user customize compression methods.