# HG changeset patch # User John Paul Wallington # Date 1219321488 0 # Node ID b491bdf09759ae0ff78431d04156ff0c7fd44067 # Parent 4ccedc64899577b9df579008531f2441a7b479f9 (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. diff -r 4ccedc648995 -r b491bdf09759 lisp/mail/rmail.el --- 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