diff options
| -rw-r--r-- | lisp/mail/pmail.el | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/lisp/mail/pmail.el b/lisp/mail/pmail.el index 6dc03bef4d4..dd400686a24 100644 --- a/lisp/mail/pmail.el +++ b/lisp/mail/pmail.el | |||
| @@ -875,22 +875,14 @@ If `pmail-display-summary' is non-nil, make a summary for this PMAIL file." | |||
| 875 | (setq pmail-buffers-swapped-p nil) | 875 | (setq pmail-buffers-swapped-p nil) |
| 876 | (if (eq major-mode 'pmail-edit-mode) | 876 | (if (eq major-mode 'pmail-edit-mode) |
| 877 | (error "Exit Pmail Edit mode before getting new mail")) | 877 | (error "Exit Pmail Edit mode before getting new mail")) |
| 878 | (if (and existed (> (buffer-size) 0)) | 878 | ;; Insure that the Rmail file is in mbox format, the buffer is in |
| 879 | ;; Buffer not new and not empty; ensure in proper mode, but that's all. | 879 | ;; Pmail mode and has been scanned to find all the messages. |
| 880 | (or (eq major-mode 'pmail-mode) | 880 | (pmail-convert-file-maybe) |
| 881 | (progn (pmail-mode-2) | 881 | (unless (eq major-mode 'pmail-mode) |
| 882 | (setq run-mail-hook t))) | 882 | (pmail-mode-2)) |
| 883 | (setq run-mail-hook t) | 883 | (goto-char (point-max)) |
| 884 | (pmail-mode-2) | ||
| 885 | (pmail-convert-file-maybe) | ||
| 886 | (goto-char (point-max))) | ||
| 887 | ;; As we have read a file by raw-text, the buffer is set to | ||
| 888 | ;; unibyte. We must make it multibyte if necessary. | ||
| 889 | (if (and pmail-enable-multibyte | ||
| 890 | (not enable-multibyte-characters)) | ||
| 891 | (set-buffer-multibyte t)) | ||
| 892 | ;; If necessary, scan to find all the messages. | ||
| 893 | (pmail-maybe-set-message-counters) | 884 | (pmail-maybe-set-message-counters) |
| 885 | ;; Show the first unread message and process summary mode. | ||
| 894 | (unwind-protect | 886 | (unwind-protect |
| 895 | (unless (and (not file-name-arg) (pmail-get-new-mail)) | 887 | (unless (and (not file-name-arg) (pmail-get-new-mail)) |
| 896 | (pmail-show-message-maybe (pmail-first-unseen-message))) | 888 | (pmail-show-message-maybe (pmail-first-unseen-message))) |