diff options
| -rw-r--r-- | lisp/mail/rmail.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 6e717c586c6..6e4dac78ce9 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -1225,14 +1225,14 @@ It returns t if it got any new messages." | |||
| 1225 | (save-excursion | 1225 | (save-excursion |
| 1226 | (setq new-messages (rmail-convert-to-babyl-format) | 1226 | (setq new-messages (rmail-convert-to-babyl-format) |
| 1227 | success t)) | 1227 | success t)) |
| 1228 | ;; Try to delete the garbage just inserted. | ||
| 1229 | (or success (delete-region (point-min) (point-max))) | ||
| 1228 | ;; If we could not convert the file's inboxes, | 1230 | ;; If we could not convert the file's inboxes, |
| 1229 | ;; rename the files we tried to read | 1231 | ;; rename the files we tried to read |
| 1230 | ;; so we won't over and over again. | 1232 | ;; so we won't over and over again. |
| 1231 | (if (and (not file-name) (not success)) | 1233 | (if (and (not file-name) (not success)) |
| 1232 | (let ((delfiles delete-files) | 1234 | (let ((delfiles delete-files) |
| 1233 | (count 0)) | 1235 | (count 0)) |
| 1234 | ;; Try to delete the garbage just inserted. | ||
| 1235 | (delete-region (point-min) (point-max)) | ||
| 1236 | (while delfiles | 1236 | (while delfiles |
| 1237 | (while (file-exists-p (format "RMAILOSE.%d" count)) | 1237 | (while (file-exists-p (format "RMAILOSE.%d" count)) |
| 1238 | (setq count (1+ count))) | 1238 | (setq count (1+ count))) |