Commit 660a52f9 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(rmail-insert-inbox-text): If copy-file fails,

call rename-file with t as third arg.
parent 1f6fcec3
......@@ -778,7 +778,8 @@ argument causes us to read a file name and use that file as the inbox."
(condition-case nil
(copy-file file tofile nil)
(rename-file file tofile nil)))
;; Third arg is t so we can replace existing file TOFILE.
(rename-file file tofile t)))
;; Make the real inbox file empty.
;; Leaving it deleted could cause lossage
;; because mailers often won't create the 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