Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Re: Problems displaying attached images with spaces in the filename
       [not found] <mailman.2559.1182679223.32220.info-gnus-english@gnu.org>
@ 2007-06-25  3:19 ` Katsumi Yamaoka
  2007-06-25  6:46   ` Svend Tollak Munkejord
  0 siblings, 1 reply; 3+ messages in thread
From: Katsumi Yamaoka @ 2007-06-25  3:19 UTC (permalink / raw)
  To: info-gnus-english

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

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'

Furthermore, `display' seems to work without specifying image
types, so it will be able to simplify as

image/*; display '%s'

or

image/*; display %s

if you use this for only Gnus.  If you don't have a mailcap file
personally, create the file named "~/.mailcap".

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problems displaying attached images with spaces in the filename
  2007-06-25  3:19 ` Problems displaying attached images with spaces in the filename Katsumi Yamaoka
@ 2007-06-25  6:46   ` Svend Tollak Munkejord
  0 siblings, 0 replies; 3+ messages in thread
From: Svend Tollak Munkejord @ 2007-06-25  6:46 UTC (permalink / raw)
  To: info-gnus-english

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 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Problems displaying attached images with spaces in the filename
@ 2007-06-24  9:55 Svend Tollak Munkejord
  0 siblings, 0 replies; 3+ messages in thread
From: Svend Tollak Munkejord @ 2007-06-24  9:55 UTC (permalink / raw)
  To: info-gnus-english

Hi,

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

and in the /tmp/emm.6484iRQ directory, I can see the jpg file, it's
just that it is not opened.

Does anyone have a fix for this?

I use No Gnus 0.6 (1 May edition), GNU Emacs 21.4 and ImageMagick
6.2.4.

Regards,
-- 
Svend Tollak Munkejord 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-06-25  6:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.2559.1182679223.32220.info-gnus-english@gnu.org>
2007-06-25  3:19 ` Problems displaying attached images with spaces in the filename Katsumi Yamaoka
2007-06-25  6:46   ` Svend Tollak Munkejord
2007-06-24  9:55 Svend Tollak Munkejord

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).