[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#384351: mutt: fails to correctly send a .doc file to OpenOffice



Hello Rene,

 On Sunday, August 27, 2006 at 18:38:42 +0200, Rene Engelhard wrote:

>> On Sun, Aug 27, 2006 at 02:06:04PM +0200, Alain Bench wrote:
>>>>| application/msword; oowriter '%s'; edit=oowriter '%s';
>>> there should not be single quotes around %s in mailcap.
> Why?

    Because Mutt has to do, and already does, the appropriate quoting
job. Single quotes in the mailcap entry are harmless but useless in
normal easy cases, and could perturbate expansion and auto-quoting of
more complex ones. Extract from the Mutt manual:

| 3.2. Secure use of mailcap
    [...]
| Keep the %-expandos away from shell quoting. Don't quote them with
| single or double quotes. Mutt does this for you, the right way, as
| should any other program which interprets mailcap.

    There is more there, and also see $mailcap_sanitize variable.


Bye!	Alain.
-- 
How to Report Bugs Effectively
<URL:http://www.chiark.greenend.org.uk/~sgtatham/bugs.html>



Reply to: