Mercurial > emacs
changeset 38304:f818b591ff17
(rmail-output): Fix duplicate MIME-Version:
field problem with MIME-mode.
(rmail-output): Fix bug in MIME-mode.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Fri, 06 Jul 2001 10:03:25 +0000 |
parents | cc8db01084a1 |
children | 3c5911d68b33 |
files | lisp/mail/rmailout.el |
diffstat | 1 files changed, 16 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/mail/rmailout.el Fri Jul 06 09:59:25 2001 +0000 +++ b/lisp/mail/rmailout.el Fri Jul 06 10:03:25 2001 +0000 @@ -316,11 +316,26 @@ (setq mail-from (mail-fetch-field "Mail-From") mime-version - (mail-fetch-field "MIME-Version"))))) + (unless rmail-enable-mime + (mail-fetch-field "MIME-Version")))))) (save-excursion (set-buffer tembuf) (erase-buffer) (insert-buffer-substring rmailbuf) + (when rmail-enable-mime + (if original-headers-p + (delete-region (goto-char (point-min)) + (if (search-forward "\n*** EOOH ***\n") + (match-end 0))) + (goto-char (point-min)) + (forward-line 2) + (delete-region (point-min)(point)) + (search-forward "\n*** EOOH ***\n") + (delete-region (match-beginning 0) + (if (search-forward "\n\n") + (1- (match-end 0))))) + (setq buffer-file-coding-system (or rmail-file-coding-system + 'raw-text))) (rmail-delete-unwanted-fields t) (or (bolp) (insert "\n")) (goto-char (point-min))