Gnus development mailing list
 help / color / mirror / Atom feed
From: Greg Stark <gsstark@mit.edu>
Cc: ding@gnus.org
Subject: Re: `mm-quote-arg' and shell quoting in mailcap (was: Shouldn't...)
Date: 03 Dec 2000 20:46:05 -0500	[thread overview]
Message-ID: <87vgt17yci.fsf@HSE-MTL-ppp64270.qc.sympatico.ca> (raw)
In-Reply-To: "Rene H. Larsen"'s message of "15 Aug 2000 02:35:50 +0200"


"Rene H. Larsen" <rhl@traceroute.dk> 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




  parent reply	other threads:[~2000-12-04  1:46 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-29 21:40 Shouldn't Gnus (er, W3) inline related images in <img src=cid:...>? Karl Kleinpaste
2000-03-05 14:24 ` William M. Perry
2000-03-05 14:35   ` Karl Kleinpaste
2000-04-20 20:26 ` Lars Magne Ingebrigtsen
2000-04-20 22:02   ` Michael Harnois
2000-04-20 22:53     ` Lars Magne Ingebrigtsen
2000-04-21 22:37       ` Michael Harnois
2000-04-22 12:14         ` Lars Magne Ingebrigtsen
2000-04-23 16:46           ` Michael Harnois
2000-08-10 18:48             ` Lars Magne Ingebrigtsen
2000-08-10 18:53               ` Roland Mas
2000-08-10 19:00                 ` Lars Magne Ingebrigtsen
2000-08-10 19:02                   ` Lars Magne Ingebrigtsen
2000-08-11  2:04                   ` Rene H. Larsen
2000-08-11  4:33                     ` ShengHuo ZHU
2000-08-11 13:17                       ` Kai Großjohann
2000-08-11 13:48                         ` ShengHuo ZHU
2000-08-11 21:03                           ` Kai Großjohann
2000-08-11 21:41                             ` ShengHuo ZHU
2000-08-13 16:07                               ` Kai Großjohann
2000-08-14  3:31                                 ` Daniel Pittman
2000-08-14 14:00                                   ` William M. Perry
2000-08-11 23:51                       ` Rene H. Larsen
2000-08-12  1:04                         ` Rene H. Larsen
2000-08-14 12:04                           ` `mm-quote-arg' and shell quoting in mailcap (was: Shouldn't...) Toby Speight
2000-08-15  0:35                             ` Rene H. Larsen
2000-08-15 12:51                               ` `mm-quote-arg' and shell quoting in mailcap Toby Speight
2000-12-04  1:46                               ` Greg Stark [this message]
2000-08-15 13:09                           ` Shouldn't Gnus (er, W3) inline related images in <img src=cid:...>? François Pinard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vgt17yci.fsf@HSE-MTL-ppp64270.qc.sympatico.ca \
    --to=gsstark@mit.edu \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).