From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/35029 Path: main.gmane.org!not-for-mail From: Didier Verna Newsgroups: gmane.emacs.gnus.general Subject: Re: [MAILCAP] filename quoting Date: 27 Feb 2001 19:44:38 +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 1035170839 826 80.91.224.250 (21 Oct 2002 03:27:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:27:19 +0000 (UTC) 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 47D1DD049D for ; Tue, 27 Feb 2001 13:38:27 -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 MAB23101; Tue, 27 Feb 2001 12:38:04 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 27 Feb 2001 12:37:24 -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 MAA13480 for ; Tue, 27 Feb 2001 12:37:10 -0600 (CST) Original-Received: from hermes.epita.fr (hermes.epita.fr [163.5.255.10]) by mailhost.sclp.com (Postfix) with ESMTP id 6945DD049D for ; Tue, 27 Feb 2001 13:37:41 -0500 (EST) Original-Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2]) by hermes.epita.fr id TAA23735 for EPITA Paris France Tue, 27 Feb 2001 19:37:20 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 14Xp72-0005ME-00 for ; Tue, 27 Feb 2001 19:44:40 +0100 Original-Received: from didier by uzeb.lrde.epita.fr with local (Exim 3.20 #1 (Debian)) id 14Xp71-0004GV-00 for ; Tue, 27 Feb 2001 19:44:39 +0100 Original-To: Gnus Beta Testers 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: (Didier Verna's message of "27 Feb 2001 19:23:33 +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'd like suggestions on the better way to fix this. In order to > avoid complex trickery trying to decide whether gnus must quote the > filenames, we could provide a user-variable. >=20 > Thoughts ? After some more thinking, the following solution might be the simpl= est one. If there's no objection, I'll apply it: Index: mm-decode.el =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /usr/local/cvsroot/gnus/lisp/mm-decode.el,v retrieving revision 6.30 diff -u -w -r6.30 mm-decode.el --- mm-decode.el 2001/01/21 06:00:23 6.30 +++ mm-decode.el 2001/02/27 18:37:14 @@ -588,7 +588,8 @@ (beg 0) (uses-stdin t) out sub total) - (while (string-match "%{\\([^}]+\\)}\\|%s\\|%t\\|%%" method beg) + (while (string-match "%{\\([^}]+\\)}\\|%s\\|'%s'\\|%t\\|'%t'\\|%%" + method beg) (push (substring method beg (match-beginning 0)) out) (setq beg (match-end 0) total (match-string 0 method) @@ -596,10 +597,10 @@ (cond ((string=3D total "%%") (push "%" out)) - ((string=3D total "%s") + ((or (string=3D total "%s") (string=3D total "'%s'")) (setq uses-stdin nil) (push (mm-quote-arg file) out)) - ((string=3D total "%t") + ((or (string=3D total "%t") (string=3D total "'%t'")) (push (mm-quote-arg (car type-list)) out)) (t (push (mm-quote-arg (or (cdr (assq (intern sub) ctl)) "")) out)))) --=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