1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-02 11:21:42 +00:00

(mail-do-fcc): When writing to an Rmail file,

use rmail-file-coding-system or else emacs-mule.
This commit is contained in:
Richard M. Stallman 1997-09-13 08:19:54 +00:00
parent 25c49fdcb4
commit 55206ca664

View File

@ -910,16 +910,19 @@ the user from the mailer."
(mail-file-babyl-p (car fcc-list)))
;; If the file is a Babyl file,
;; convert the message to Babyl format.
(save-excursion
(set-buffer (get-buffer-create " mail-temp"))
(setq buffer-read-only nil)
(erase-buffer)
(insert "\C-l\n0, unseen,,\n*** EOOH ***\n"
"Date: " (mail-rfc822-date) "\n")
(insert-buffer-substring curbuf beg2 end)
(insert "\n\C-_")
(write-region (point-min) (point-max) (car fcc-list) t)
(erase-buffer))
(let ((coding-system-for-write
(or rmail-file-coding-system
'emacs-mule)))
(save-excursion
(set-buffer (get-buffer-create " mail-temp"))
(setq buffer-read-only nil)
(erase-buffer)
(insert "\C-l\n0, unseen,,\n*** EOOH ***\n"
"Date: " (mail-rfc822-date) "\n")
(insert-buffer-substring curbuf beg2 end)
(insert "\n\C-_")
(write-region (point-min) (point-max) (car fcc-list) t)
(erase-buffer)))
(write-region
(1+ (point-min)) (point-max) (car fcc-list) t))
(and buffer (not dont-write-the-file)