From: Katsumi Yamaoka <yamaoka@jpl.org>
To: info-gnus-english@gnu.org
Subject: Re: Problems displaying attached images with spaces in the filename
Date: Mon, 25 Jun 2007 12:19:03 +0900 [thread overview]
Message-ID: <b4md4zku3fc.fsf@jpl.org> (raw)
In-Reply-To: <mailman.2559.1182679223.32220.info-gnus-english@gnu.org>
>>>>> 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".
next parent reply other threads:[~2007-06-25 3:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.2559.1182679223.32220.info-gnus-english@gnu.org>
2007-06-25 3:19 ` Katsumi Yamaoka [this message]
2007-06-25 6:46 ` Svend Tollak Munkejord
2007-06-24 9:55 Svend Tollak Munkejord
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b4md4zku3fc.fsf@jpl.org \
--to=yamaoka@jpl.org \
--cc=info-gnus-english@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).