diff options
| author | Richard M. Stallman | 1998-10-21 18:39:15 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-10-21 18:39:15 +0000 |
| commit | c317dd9330c940010447bce6cb7696aca377bf83 (patch) | |
| tree | 11f47d10d5570d9e84bd2851f488d6eb4993dc03 | |
| parent | 3d0ee5e6c9ad3bddea0a5baa1679868ea0f7bf62 (diff) | |
| download | emacs-c317dd9330c940010447bce6cb7696aca377bf83.tar.gz emacs-c317dd9330c940010447bce6cb7696aca377bf83.zip | |
(rmail-get-new-mail): Delete garbage in any case.
| -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))) |