Gnus development mailing list
 help / color / mirror / Atom feed
From: Didier Verna <didier@lrde.epita.fr>
Cc: Gnus Beta Testers <ding@gnus.org>
Subject: Re: [MAILCAP] filename quoting
Date: 28 Feb 2001 09:18:09 +0100	[thread overview]
Message-ID: <muxpug3mda6.fsf@uzeb.lrde.epita.fr> (raw)
In-Reply-To: <vafzof7pyl6.fsf@lucy.cs.uni-dortmund.de> (Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "27 Feb 2001 23:09:41 +0100")

Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) wrote:

> 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 still
remains affordable in those simple cases, however.

-- 
    /     /   _   _       Didier Verna       http://www.lrde.epita.fr/~didier
 - / / - / / /_/ /        EPITA / LRDE         mailto:didier@lrde.epita.fr
/_/ / /_/ / /__ /      14-16 rue Voltaire        Tel. +33 (1) 53 14 59 47
                   94276 Kremlin-Bicêtre cedex   Fax. +33 (1) 44 08 01 99



  reply	other threads:[~2001-02-28  8:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-27 18:23 Didier Verna
2001-02-27 18:44 ` Didier Verna
2001-02-27 22:09   ` Kai Großjohann
2001-02-28  8:18     ` Didier Verna [this message]
2001-02-28 15:41       ` Kai Großjohann
2001-02-28 16:10         ` Toby Speight
2001-02-28 20:06           ` Kai Großjohann

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=muxpug3mda6.fsf@uzeb.lrde.epita.fr \
    --to=didier@lrde.epita.fr \
    --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).