(mml-attach-file): Strip text properties from file name.
authorReiner Steib <Reiner.Steib@gmx.de>
Thu, 18 Dec 2008 21:08:33 +0000 (21:08 +0000)
committerReiner Steib <Reiner.Steib@gmx.de>
Thu, 18 Dec 2008 21:08:33 +0000 (21:08 +0000)
lisp/ChangeLog
lisp/mml.el

index 542db0b..513964c 100644 (file)
@@ -1,3 +1,7 @@
+2008-12-18  Reiner Steib  <Reiner.Steib@gmx.de>
+
+       * mml.el (mml-attach-file): Strip text properties from file name.
+
 2008-12-15  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * mml.el (mml-generate-mime-1): Prefer the MIME charset that Emacs
index 3e3cb2c..51d0753 100644 (file)
@@ -1289,7 +1289,9 @@ body) or \"attachment\" (separate from the body)."
     (unless (message-in-body-p) (goto-char (point-max)))
     (mml-insert-empty-tag 'part
                          'type type
-                         'filename file
+                         ;; icicles redefines read-file-name and returns a
+                         ;; string w/ text properties :-/
+                         'filename (substring-no-properties file)
                          'disposition (or disposition "attachment")
                          'description description)))