Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Laurent Martelli <laurent@bearteam.org>
Subject: Re: [PATCH] Attached images with spaces in the filename
Date: Fri, 20 Dec 2002 13:48:31 +0100	[thread overview]
Message-ID: <87lm2keu00.fsf@bearteam.org> (raw)
In-Reply-To: <87ptrwevgw.fsf@bearteam.org>

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/


           reply	other threads:[~2002-12-20 12:48 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <87ptrwevgw.fsf@bearteam.org>]

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=87lm2keu00.fsf@bearteam.org \
    --to=laurent@bearteam.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).