Commit 019bf2a3 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(rmail-insert-inbox-text): If inbox is not in the

spool dir, try copying before renaming.
parent 626f67f3
......@@ -753,7 +753,12 @@ argument causes us to read a file name and use that file as the inbox."
(not (file-exists-p file))))
((and (not movemail) (not popmail))
(rename-file file tofile nil)
;; Try copying. If that fails (perhaps no space),
;; rename instead.
(condition-case nil
(copy-file file tofile nil)
(rename-file file tofile nil)))
;; 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