comparison lisp/mail/rmail.el @ 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 ef65fa4dca3b
children f2d8842e9574
comparison
equal deleted inserted replaced
97594:4ccedc648995 97595:b491bdf09759
1801 (setq tofile (expand-file-name 1801 (setq tofile (expand-file-name
1802 ;; Generate name to move to from inbox name, 1802 ;; Generate name to move to from inbox name,
1803 ;; in case of multiple inboxes that need moving. 1803 ;; in case of multiple inboxes that need moving.
1804 (concat ".newmail-" 1804 (concat ".newmail-"
1805 (file-name-nondirectory 1805 (file-name-nondirectory
1806 (if (memq system-type '(windows-nt cygwin)) 1806 (if (memq system-type '(windows-nt cygwin ms-dos))
1807 ;; cannot have "po:" in file name 1807 ;; cannot have colons in file name
1808 (substring file 3) 1808 (replace-regexp-in-string ":" "-" file)
1809 file))) 1809 file)))
1810 ;; Use the directory of this rmail file 1810 ;; Use the directory of this rmail file
1811 ;; because it's a nuisance to use the homedir 1811 ;; because it's a nuisance to use the homedir
1812 ;; if that is on a full disk and this rmail 1812 ;; if that is on a full disk and this rmail
1813 ;; file isn't. 1813 ;; file isn't.