Control: severity 723708 important
Control: found 723708 3.54
Control: found 723708 3.55~experimental1

The mime-support maintainer has closed bug #745141 
<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=745141#26>, in which I was 
asserting that update-mime should quote %s in mailcap entries to avoid problems 
with filenames containing spaces. His decision is that %s should not be quoted, 
based on a reading of the RFC1524 <http://www.faqs.org/rfcs/rfc1524.html>, 
which seems to suggest that it is up to mailcap clients to ensure that 
substitution of %s be done as a single argument to the program in question.

Given this, I think it is fair to say that this bug (#723708) is verified, as 
run-mailcap is incorrectly handling non-quoted %s mailcap entries (which often 
happen to be generated by update-mime in this same package). As I noted when I 
opened bug #745141 
<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=745141#5>, I've been running 
into this problem with run-mailcap and imagemagick, whereby run-mailcap is 
splitting filenames on spaces and sending each part as a separate argument to 
the program listed in the mailcap entry when %s is not quoted. The following 
mailcap entry fails in this fashion:

image/jpeg; /usr/bin/display.im6 %s; test=test -n "$DISPLAY"

Whereas, the following mailcap entry does not fail:

image/jpeg; display.im6 'jpeg:%s'; test=test -n "$DISPLAY"

The non-quoted mailcap entry appears first on a system with imagemagick 
installed without further configuration, due to update-mime putting desktop 
entry conversions into the mailcap ahead of package-provided native mailcap 
entries. This undermines the utility of the imagemagick package installing 
native mailcap entries, and results in a broken mailcap configuration for 
handling images via run-mailcap+imagemagick when filenames contain spaces. Due 
to the mechanism at work, this would mean run-mailcap is also failing on 
filenames containing spaces for any other mailcap entries converted from 
desktop entries by update-mime, as well as any other mailcap entries otherwise 
not quoting %s regardless of source.

-- 
Joseph Spiros
jos...@josephspiros.com
+1 (440) 707-6855


-- 
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