From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/46135 Path: main.gmane.org!not-for-mail From: Toby Speight Newsgroups: gmane.emacs.gnus.general Subject: Re: Fix displaying attachments with spaces etc. Date: 15 Aug 2002 13:47:16 +0100 Organization: Citrix Systems Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1029415635 26335 127.0.0.1 (15 Aug 2002 12:47:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 15 Aug 2002 12:47:15 +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 17fK1y-0006qe-00 for ; Thu, 15 Aug 2002 14:47:14 +0200 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 17fK2P-0004oB-00; Thu, 15 Aug 2002 07:47:41 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 15 Aug 2002 07:48:11 -0500 (CDT) 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 HAA14267 for ; Thu, 15 Aug 2002 07:47:59 -0500 (CDT) Original-Received: (qmail 28896 invoked by alias); 15 Aug 2002 12:47:23 -0000 Original-Received: (qmail 28891 invoked from network); 15 Aug 2002 12:47:23 -0000 Original-Received: from gatekeeper.ctxuk.citrix.com (root@195.153.38.114) by gnus.org with SMTP; 15 Aug 2002 12:47:23 -0000 Original-Received: from sh.ctxuk.citrix.com (sh.ctxuk.citrix.com [10.30.224.4]) by gatekeeper.ctxuk.citrix.com (8.8.7/BSCF-1.7) with ESMTP id NAA26853 for ; Thu, 15 Aug 2002 13:47:20 +0100 (BST) Original-Received: from uk1mailscan01 (uk1mailscan01.ctxuk.citrix.com [10.30.224.37]) by sh.ctxuk.citrix.com (8.8.7/BSCF-1.7) with SMTP id NAA01953 for ; Thu, 15 Aug 2002 13:47:19 +0100 (BST) Original-Received: from 10.30.224.101 by uk1mailscan01 (InterScan E-Mail VirusWall NT); Thu, 15 Aug 2002 13:47:19 +0100 Original-Received: by hwexch01.ctxuk.citrix.com with Internet Mail Service (5.5.2653.19) id ; Thu, 15 Aug 2002 13:47:19 +0100 Original-Received: from suilven.cam.eu.citrix.com ([10.70.128.164]) by hwexch01.ctxuk.citrix.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id P2TB75JS; Thu, 15 Aug 2002 13:47:17 +0100 Original-To: The Gnus Mailing List Original-Lines: 23 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 X-Face: wqk-$Z5Z X-Message-Flag: There's too much blood in my caffeine system. Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:46135 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:46135 I wonder if it's sufficient to (when (search-forward "'%s'" nil t) (replace-match "%s" t t command)) to take care of this particular case. Personally, I'd feel a lot more comfortable if Gnus ignored the sender's suggested filename except when saving to a permanent file, and used a randomly-generated name for viewing, in the same way that W3 does. I don't like the idea of trusting the author, no matter how careful Gnus is. 0> In article , 0> Paul R. Jarc ("Paul") wrote: Paul> If mailcap weren't so badly designed, it wouldn't be necessary to Paul> quote anything. Paul> image/jpeg: display "$filename" Paul> Then the application would set $filename in the environment. Gnus Paul> could do this substitution in a similar way to this patch, although I Paul> don't know whether it's worthwhile since the quoting code is already Paul> written. Yeah. I think it's safer (from silly mistakes in the quoting code, perhaps) to use environmental substitution. This would still require removal of the single quotes as above, though.