Package: mime-support
Version: 3.54
Severity: wishlist

The mailcap(5) man page shows %s in commands unquoted,

    text/plain; cat %s; copiousoutput

but run-mailcap passes filenames with spaces straight to such a command

    touch '/tmp/x x.txt'
    run-mailcap --action=cat '/tmp/x x.txt'
    =>
    cat: /tmp/x: No such file or directory
    cat: x.txt: No such file or directory

Should mailcap(5) advise quoting like '%s' in commands?  Or should
run-mailcap avoid passing spaces?

I see most mailcaps in debian have '%s'.  RFC 1524 shows without but
perhaps it was conceived for temp files of mail parts rather than
arbitrary files.


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-486
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

mime-support depends on no packages.

Versions of packages mime-support recommends:
ii  file  1:5.14-2

mime-support suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to