mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-21 20:37:38 +00:00
(rmail-insert-inbox-text): If inbox is not in the
spool dir, try copying before renaming.
This commit is contained in:
parent
626f67f354
commit
019bf2a313
1 changed files with 6 additions and 1 deletions
|
|
@ -753,7 +753,12 @@ argument causes us to read a file name and use that file as the inbox."
|
|||
(not (file-exists-p file))))
|
||||
nil)
|
||||
((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)
|
||||
(error
|
||||
(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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue