From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/9232 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.user Subject: Re: Problems displaying attached images with spaces in the filename Date: Mon, 25 Jun 2007 12:19:03 +0900 Organization: Emacsen advocacy group 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 1182742828 7455 80.91.229.12 (25 Jun 2007 03:40:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Jun 2007 03:40:28 +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 05:40:26 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 1I2fRB-00074E-Sd for gegu-info-gnus-english@m.gmane.org; Mon, 25 Jun 2007 05:40:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I2fRB-0003cy-0s for gegu-info-gnus-english@m.gmane.org; Sun, 24 Jun 2007 23:40:25 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 32 Original-X-Trace: individual.net /whBI83TkWZsUhDYkMJRjA9wFktOwznuA4nq0R3m1oCWzEr8A= X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:TX/a5+3WMOAuHHiGiWJ6ZpOvqeA= Original-Xref: shelby.stanford.edu gnu.emacs.gnus:79416 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:9232 Archived-At: >>>>> 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' 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".