diff options
| author | Richard M. Stallman | 1993-09-07 10:41:05 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-09-07 10:41:05 +0000 |
| commit | e3e87be8cd7844bce254db2840acee4e52bcbcbc (patch) | |
| tree | 9531dd1ae55f7fb994e6e8ab9afa09dd3f5e1d60 /lisp/mail | |
| parent | 8a988f456de1b6256781b8f831aa43eb2af32fef (diff) | |
| download | emacs-e3e87be8cd7844bce254db2840acee4e52bcbcbc.tar.gz emacs-e3e87be8cd7844bce254db2840acee4e52bcbcbc.zip | |
(rmail-convert-file): Exclude the Babyl header
when calling rmail-convert-to-babyl-format.
Diffstat (limited to 'lisp/mail')
| -rw-r--r-- | lisp/mail/rmail.el | 15 |
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 | ||