From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/1642 Path: news.gmane.org!not-for-mail From: Laurent Martelli Newsgroups: gmane.emacs.gnus.user Subject: Re: [PATCH] Attached images with spaces in the filename Date: Fri, 20 Dec 2002 13:48:31 +0100 Organization: Nerim -- xDSL Internet Provider Message-ID: <87lm2keu00.fsf@bearteam.org> References: <87ptrwevgw.fsf@bearteam.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138668358 12169 80.91.229.2 (31 Jan 2006 00:45:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:45:58 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:29:28 2006 Original-Path: quimby.gnus.org!newsfeed1.e.nsc.no!nsc.no!nextra.com!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!nerim.net!norfair.nerim.net!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: aopsys1.net1.nerim.net Original-X-Trace: norfair.nerim.net 1040388450 68247 62.212.107.21 (20 Dec 2002 12:47:30 GMT) Original-X-Complaints-To: abuse@nerim.net Original-NNTP-Posting-Date: Fri, 20 Dec 2002 12:47:30 +0000 (UTC) User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/20.7 (i386-debian-linux-gnu) Cancel-Lock: sha1:khBcdigGRBxcRHm9Gz6/hrD204I= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:1782 Original-Lines: 44 X-Gnus-Article-Number: 1782 Tue Jan 17 17:29:28 2006 Xref: news.gmane.org gmane.emacs.gnus.user:1642 Archived-At: I finally hacked a few minutes and come with this patch for mm-decode.el: *** /usr/share/emacs/site-lisp/mm-decode.el 2002-08-24 13:53:41.000000000 +0200 --- elisp/mm-decode.el 2002-12-20 13:41:36.000000000 +0100 *************** *** 774,780 **** (beg 0) (uses-stdin t) out sub total) ! (while (string-match "%{\\([^}]+\\)}\\|%s\\|%t\\|%%" method beg) (push (substring method beg (match-beginning 0)) out) (setq beg (match-end 0) total (match-string 0 method) --- 776,782 ---- (beg 0) (uses-stdin t) out sub total) ! (while (string-match "%{\\([^}]+\\)}\\|'%s'\\|%s\\|%t\\|%%" method beg) (push (substring method beg (match-beginning 0)) out) (setq beg (match-end 0) total (match-string 0 method) *************** *** 782,788 **** (cond ((string= total "%%") (push "%" out)) ! ((string= total "%s") (setq uses-stdin nil) (push (mm-quote-arg (gnus-map-function mm-path-name-rewrite-functions file)) out)) --- 784,790 ---- (cond ((string= total "%%") (push "%" out)) ! ((or (string= total "%s") (string= total "'%s'")) (setq uses-stdin nil) (push (mm-quote-arg (gnus-map-function mm-path-name-rewrite-functions file)) out)) -- Laurent Martelli http://jac.aopsys.com/ laurent@bearteam.org http://www.bearteam.org/~laurent/