tags 421604 +patch
thanks

Mutt now accepts \-escaping in attachment filenames, so this bug can
finally be nailed down. Patch attached.

-- 
Lionel
--- /usr/share/emacs/site-lisp/post-el/post.el~	2009-04-26 08:52:18.000000000 +0200
+++ /usr/share/emacs/site-lisp/post-el/post.el	2010-02-08 03:39:10.122468522 +0100
@@ -1257,7 +1257,7 @@
 	  (widen)
 	  (goto-char (point-min))
 	  (search-forward-regexp "^$")
-	  (insert (concat "Attach: " (file-truename file) " "
+	  (insert (concat "Attach: " (replace-regexp-in-string "\\([[:space:]\\]\\)" "\\\\\\1" (file-truename file)) " "
                       description "\n"))
 	  (message (concat "Attached '" file "'."))
 	  (setq post-has-attachment t))))))

Reply via email to