aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/mail/rmail.el15
1 files changed, 10 insertions, 5 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index d55627ee0a6..979975bafa0 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -276,14 +276,19 @@ that file, but does not copy any new mail into the file."
276 ;; Unix format messages added at the end, 276 ;; Unix format messages added at the end,
277 ;; convert file as necessary. 277 ;; convert file as necessary.
278 (if (or convert 278 (if (or convert
279 (progn (goto-char (point-max)) 279 (save-excursion
280 (search-backward "\^_") 280 (goto-char (point-max))
281 (forward-char 1) 281 (search-backward "\^_")
282 (looking-at "\n*From "))) 282 (forward-char 1)
283 (looking-at "\n*From ")))
283 (let ((buffer-read-only nil)) 284 (let ((buffer-read-only nil))
284 (message "Converting to Babyl format...") 285 (message "Converting to Babyl format...")
285;;; If file needs conversion, convert it all. 286 ;; If file needs conversion, convert it all,
287 ;; except for the BABYL header.
288 ;; (rmail-convert-to-babyl-format would delete the header.)
286;;; (narrow-to-region (point) (point-max)) 289;;; (narrow-to-region (point) (point-max))
290 (goto-char (point-min))
291 (search-forward "\n\^_" nil t)
287 (rmail-convert-to-babyl-format) 292 (rmail-convert-to-babyl-format)
288 (message "Converting to Babyl format...done"))))) 293 (message "Converting to Babyl format...done")))))
289 294