From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/47709 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.gnus.general Subject: gnus-mime-copy-part and filename Date: Mon, 18 Nov 2002 07:41:37 +1000 Sender: owner-ding@hpc.uh.edu Message-ID: <878yzrc1ri.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1037569378 16862 80.91.224.249 (17 Nov 2002 21:42:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 17 Nov 2002 21:42:58 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18DXBx-0004Np-00 for ; Sun, 17 Nov 2002 22:42:57 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18DXCT-0008SQ-00; Sun, 17 Nov 2002 15:43:29 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 17 Nov 2002 15:44:15 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id PAA22639 for ; Sun, 17 Nov 2002 15:43:59 -0600 (CST) Original-Received: (qmail 17129 invoked by alias); 17 Nov 2002 21:43:04 -0000 Original-Received: (qmail 17124 invoked from network); 17 Nov 2002 21:43:04 -0000 Original-Received: from sunny.pacific.net.au (203.25.148.40) by gnus.org with SMTP; 17 Nov 2002 21:43:04 -0000 Original-Received: from wisma.pacific.net.au (wisma.pacific.net.au [210.23.129.72]) by sunny.pacific.net.au with ESMTP id gAHLgxp4015121 for ; Mon, 18 Nov 2002 08:42:59 +1100 (EST) Original-Received: from localhost (ppp90.dyn228.pacific.net.au [203.143.228.90]) by wisma.pacific.net.au with ESMTP id IAA26329 for ; Mon, 18 Nov 2002 08:42:56 +1100 (EST) Original-Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 18DXAh-0000dr-00; Mon, 18 Nov 2002 07:41:39 +1000 Original-To: ding@gnus.org Mail-Copies-To: never User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.1 (i386-debian-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:47709 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:47709 --=-=-= I notice gnus-mime-copy-part (`c' on the button) looks for a filename parameter from mm-handle-type, but I wonder if that ought to be mm-handle-disposition. Certainly gnus itself seems to give the filename under Content-Disposition rather than Content-Type, following rfc2183 if I read it right. Fixing this lets normal-mode do the right thing in the new buffer. * gnus-art.el (gnus-mime-copy-part): Look for filename parameter under content-disposition, not content-type. --=-=-= Content-Disposition: attachment; filename=gnus-art.el.copy-part.diff --- gnus-art.el.~6.253.~ 2002-11-18 06:06:02.000000000 +1000 +++ gnus-art.el 2002-11-18 07:34:34.000000000 +1000 @@ -3878,7 +3878,7 @@ (file-name-nondirectory (or (mail-content-type-get (mm-handle-type handle) 'name) - (mail-content-type-get (mm-handle-type handle) + (mail-content-type-get (mm-handle-disposition handle) 'filename) "*decoded*")))) (buffer (and base (generate-new-buffer base)))) --=-=-=--