changeset 97595:b491bdf09759

(rmail-insert-inbox-text): Ensure that the filename of `tofile' doesn't contain any colons so that it works on Windows, Cygwin, and MS-DOS systems.
author John Paul Wallington <jpw@pobox.com>
date Thu, 21 Aug 2008 12:24:48 +0000
parents 4ccedc648995
children 87f135663b95
files lisp/mail/rmail.el
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/rmail.el	Thu Aug 21 05:48:32 2008 +0000
+++ b/lisp/mail/rmail.el	Thu Aug 21 12:24:48 2008 +0000
@@ -1803,9 +1803,9 @@
 		    ;; in case of multiple inboxes that need moving.
 		    (concat ".newmail-"
 			    (file-name-nondirectory
-			     (if (memq system-type '(windows-nt cygwin))
-				 ;; cannot have "po:" in file name
-				 (substring file 3)
+			     (if (memq system-type '(windows-nt cygwin ms-dos))
+				 ;; cannot have colons in file name
+				 (replace-regexp-in-string ":" "-" file)
 			       file)))
 		    ;; Use the directory of this rmail file
 		    ;; because it's a nuisance to use the homedir