From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/9234 Path: news.gmane.org!not-for-mail From: Svend Tollak Munkejord Newsgroups: gmane.emacs.gnus.user Subject: Re: Problems displaying attached images with spaces in the filename Date: Mon, 25 Jun 2007 08:46:17 +0200 Organization: The Royal Society for Putting Things on Top of Other Things Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1182790275 2409 80.91.229.12 (25 Jun 2007 16:51:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Jun 2007 16:51:15 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Mon Jun 25 18:51:14 2007 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I2rmQ-0001rJ-BP for gegu-info-gnus-english@m.gmane.org; Mon, 25 Jun 2007 18:51:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I2rmP-0005Jj-UE for gegu-info-gnus-english@m.gmane.org; Mon, 25 Jun 2007 12:51:09 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!goblin1!goblin.stu.neva.ru!uio.no!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 39 Original-NNTP-Posting-Host: decibel.pvv.ntnu.no Original-X-Trace: quimby.gnus.org 1182753977 10124 129.241.210.179 (25 Jun 2007 06:46:17 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Mon, 25 Jun 2007 06:46:17 +0000 (UTC) Mail-Copies-To: never User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) X-Face: (2vS>!nr@2"*^KO{^8A<, _lGWx3HpnuA1UCA5vbsLl|2fZAV\T'x(3E`4@UJ >_mn@3S(.`C]g9DoFSSNAB@hftp\f-b#!UjRVfG5e#~H*^RvP+:meH63245"^?Zs7S[dE(SL`cn Cancel-Lock: sha1:vstJx9jWMHq4u4GGkr2dPn9LfK4= Original-Xref: shelby.stanford.edu gnu.emacs.gnus:79417 X-Mailman-Approved-At: Mon, 25 Jun 2007 12:51:08 -0400 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:9234 Archived-At: On 2007-06-25, Katsumi Yamaoka wrote: >>>>>> In >>>>>> 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