From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/33563 Path: main.gmane.org!not-for-mail From: Greg Stark Newsgroups: gmane.emacs.gnus.general Subject: Re: `mm-quote-arg' and shell quoting in mailcap (was: Shouldn't...) Date: 03 Dec 2000 20:46:05 -0500 Organization: The Emacs Conspiracy; member since 1992 Sender: owner-ding@hpc.uh.edu Message-ID: <87vgt17yci.fsf@HSE-MTL-ppp64270.qc.sympatico.ca> References: <87n1moph1r.fsf@mharnois.workgroup.net> <87ya672i8q.fsf@mharnois.workgroup.net> <87bt30n4sf.fsf@mharnois.workgroup.net> <87hf8tc5hx.fsf@cachemir.echo-net.net> <87og303647.fsf@worldonline.dk> <2ng0ocmn6o.fsf@tiger.jia.vnet> <87vgx7pdao.fsf@worldonline.dk> <87r97vp9vr.fsf@worldonline.dk> <87sns8oxpu.fsf_-_@delivery.cam.eu.citrix.com> <873dk7nyxl.fsf@worldonline.dk> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035169647 25789 80.91.224.250 (21 Oct 2002 03:07:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:07:27 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by mailhost.sclp.com (Postfix) with ESMTP id C83D5D049A for ; Sun, 3 Dec 2000 20:49:38 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id TAB13019; Sun, 3 Dec 2000 19:45:50 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 03 Dec 2000 19:45:14 -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 TAA24299 for ; Sun, 3 Dec 2000 19:45:01 -0600 (CST) Original-Received: from tomts5-srv.bellnexxia.net (tomts5.bellnexxia.net [209.226.175.25]) by mailhost.sclp.com (Postfix) with ESMTP id 416CAD049A for ; Sun, 3 Dec 2000 20:45:22 -0500 (EST) Original-Received: from HSE-MTL-ppp64270.qc.sympatico.ca ([64.229.168.207]) by tomts5-srv.bellnexxia.net (InterMail vM.4.01.03.00 201-229-121) with ESMTP id <20001204014521.JEEZ22808.tomts5-srv.bellnexxia.net@HSE-MTL-ppp64270.qc.sympatico.ca>; Sun, 3 Dec 2000 20:45:21 -0500 Original-Received: from localhost ([127.0.0.1] helo=HSE-MTL-ppp64270.qc.sympatico.ca ident=brnstnd@kramden.acf.nyu.edu) by HSE-MTL-ppp64270.qc.sympatico.ca with smtp (Exim 3.16 #1 (Debian)) id 142khh-0006zn-00; Sun, 03 Dec 2000 20:46:05 -0500 Original-To: "Rene H. Larsen" In-Reply-To: "Rene H. Larsen"'s message of "15 Aug 2000 02:35:50 +0200" Original-Lines: 21 User-Agent: Gnus/5.070099 (Pterodactyl Gnus v0.99) Emacs/20.7 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:33563 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:33563 "Rene H. Larsen" writes: > > WIBNI if this kind of definition was automatically selected on Debian > > systems? (or if the filenames were always translated to something > > innocuous? That's the Right Thing IMO) > > I agree. For systems where the system mailcap is known to use > consistent quoting, it would be really nice if Gnus would > automagically choose the correct version of mm-quote-arg. Wouldn't the right thing to do be to check if the %s is surrounded by single quotes before quoting the arguments? Otherwise you're going to run into a problem if your home directory is shared across different systems... And since the worst case problem you run into is a security hole I would suggest the most conservative logic, namely always quote unless you can verify the mailcap rule is safe without quoting. -- greg