Package: mime-support Version: 3.54 /etc/mailcap is generated by /usr/sbin/update-mime from files in /usr/lib/mime/packages. Currently, update-mime adds single quotes around %s entries.
Well-behaved clients of /etc/mailcap already protect spaces, quotes, etc., in file names. For example the flim emacs package calls `shell-quote-argument' when formatting the file name. Mutt also does the `right thing'. The consequence is that if soemone sends me an attachment called "fred's docs.pdf" mutt invokes xpdf 'fred\'s\ docs.pdf` which correctly quotes the embedded quotation mark, but adds an extra level of quoting to the space. Please can this behaviour be fixed? It's probably best not to have quotation marks around %s in /etc/mailcap, and make all mailcap clients do proper quoting. I'm aware of #723708 and #745141 --- which confuses me This is my suggested patch. --- update-mime~ 2014-05-05 14:44:15.715803351 +1000 +++ update-mime 2014-05-05 14:44:33.819919965 +1000 @@ -95,7 +95,7 @@ print STDERR " $_\n"; $priority=$defpriority; } - s/([^\s;]\s+)(?![\'\"])([^\s;]*)%s([^\s;]*)/$1'$2%s$3'/g; +# s/([^\s;]\s+)(?![\'\"])([^\s;]*)%s([^\s;]*)/$1'$2%s$3'/g; $entries{$counter} = $_; push @{$packages{$pkg}},$counter; push @{$priorities{$priority}},$counter; -- Dr Peter Chubb peter.chubb AT nicta.com.au http://www.ssrg.nicta.com.au Software Systems Research Group/NICTA -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org