Commit fe6dd7e2 authored by Richard M. Stallman's avatar Richard M. Stallman

(rmail-output-body-to-file): Avoid space and colon in default file name.

parent c7eb0ba1
2009-02-14 Richard M Stallman <rms@gnu.org>
* mail/rmailout.el (rmail-output-body-to-file): Avoid space and colon
in default file name.
* mail/rmail.el (rmail-convert-file-maybe): Turn off case-fold-search.
(rmail-add-mbox-headers): Likewise.
......
......@@ -568,6 +568,10 @@ FILE-NAME defaults, interactively, from the Subject field of the message."
(let ((default-file
(or (mail-fetch-field "Subject")
rmail-default-body-file)))
(setq default-file
(replace-regexp-in-string ":" "-" default-file))
(setq default-file
(replace-regexp-in-string " " "-" default-file))
(list (setq rmail-default-body-file
(read-file-name
"Output message body to file: "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment