From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/35078 Path: main.gmane.org!not-for-mail From: Didier Verna Newsgroups: gmane.emacs.gnus.general Subject: Re: [MAILCAP] filename quoting Date: 28 Feb 2001 09:18:09 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1035170878 1060 80.91.224.250 (21 Oct 2002 03:27:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:27:58 +0000 (UTC) Cc: Gnus Beta Testers Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by mailhost.sclp.com (Postfix) with ESMTP id DE169D049D for ; Wed, 28 Feb 2001 03:12:16 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id CAB28152; Wed, 28 Feb 2001 02:12:03 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 28 Feb 2001 02:10:58 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id CAA19976 for ; Wed, 28 Feb 2001 02:10:46 -0600 (CST) Original-Received: from hermes.epita.fr (hermes.epita.fr [163.5.255.10]) by mailhost.sclp.com (Postfix) with ESMTP id AD3FFD049D for ; Wed, 28 Feb 2001 03:11:14 -0500 (EST) Original-Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2]) by hermes.epita.fr id JAA05379 Wed, 28 Feb 2001 09:10:43 GMT Original-Received: from debian.lrde.epita.fr ([10.223.13.53] helo=uzeb.lrde.epita.fr ident=mail) by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian)) id 14Y1oI-0006B7-00; Wed, 28 Feb 2001 09:18:10 +0100 Original-Received: from didier by uzeb.lrde.epita.fr with local (Exim 3.20 #1 (Debian)) id 14Y1oH-0005Uw-00; Wed, 28 Feb 2001 09:18:09 +0100 Original-To: Kai.Grossjohann@cs.uni-dortmund.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) X-Attribution: drv X-Url: http://www.infres.enst.fr/~verna X-Web: http://www.infres.enst.fr/~verna X-Home-Page: http://www.infres.enst.fr/~verna In-Reply-To: (Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "27 Feb 2001 23:09:41 +0100") X-Face: |j}\)O|k##MrRz#VK$Jy=0r=3Qc,,a/Tr6*JQbE73dy17]2YcmW$9Z&H21e}#~#pgc>dn(is5Bv1l!{1re+Q9suKIOUmOqZs2>QMxHlR;;}kaGYA@HR3D C6 X-Face: 6o|eiKqaHN.ANh8HXDzntcWUOCg\]RsOd.ctvm~*y}Y^R&*a+Co,\s#=HWsw3x$b_n2kJ#g (7u?J^@^xP)f,jUF|0Z'J:|G/bMA5O12*b,7`-Q`=pKsCRIpso07.Y>YB2H{7`?u&yh;C_ZtLHfj I'm not sure I understand the code. I guess it looks for '%s' in the > mailcap file and then does something special. Does it omit the call > to mm-quote-arg? Or does it replace '%s' with %s and then do > mm-quote-arg? Previously, the code was only scanning %s's and replacing occurences with the mm-quoted filename. Hence you could get 'quoted-filename'. With my patch, it also looks for '%s', in which case the quotes will be eaten, resulting in just the quoted-filename. > I think it might forget to look for "%s" in addition to '%s' -- some > people might have the double quotes rather than single quotes. I guess you're probably right. What still bothers me in this solution is that we're somewhat doing the shell's job in understanding and processing its quoting syntax. That st= ill remains affordable in those simple cases, however. --=20 / / _ _ Didier Verna http://www.lrde.epita.fr/~didi= er - / / - / / /_/ / EPITA / LRDE mailto:didier@lrde.epita.fr /_/ / /_/ / /__ / 14-16 rue Voltaire Tel. +33 (1) 53 14 59 47 94276 Kremlin-Bic=EAtre cedex Fax. +33 (1) 44 08 01 99