info-gnus-english
[Top][All Lists]
Advanced

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

Re: Problems displaying attached images with spaces in the filename


From: Svend Tollak Munkejord
Subject: Re: Problems displaying attached images with spaces in the filename
Date: Mon, 25 Jun 2007 08:46:17 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

On 2007-06-25, Katsumi Yamaoka wrote:

>>>>>> In <mailman.2559.1182679223.32220.info-gnus-english@gnu.org>
>>>>>>  Svend Tollak Munkejord wrote:
>
>> I have a problem with e-mails containing attached images with spaces
>> in the filename. Gnus launches the display program, but instead of
>> showing the image, display shows the "Browse and Select a File" menu.
>
>> In the *Message* buffer, I see something like
>
>> Displaying display 'jpeg:/tmp/emm.6484iRQ/a\ nice\ picture.jpg'...
>
> You seem to have an entry like the following in your mailcap file.
>
> image/jpeg; display 'jpeg:%s'

Not in ~/.mailcap -- I don't know where this is set.

> Gnus quotes spaces with `\' using `shell-quote-argument', so
> quoting a whole argument with '...' is excessive.  Since Gnus
> treats '%s' and "%s" as just %s, you can modify it into:
>
> image/jpeg; display jpeg:'%s'

Thank you, this works very well!

> Furthermore, `display' seems to work without specifying image
> types, so it will be able to simplify as
>
> image/*; display '%s'

If I do this in ~/.mailcap, then the system seems to fall back to the
old and wrong default 'jpeg:%s', so I'll use the jpeg:'%s' option for
now.

Thank you,
-- 
Svend Tollak Munkejord 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]