Skip to content

Commit

Permalink
(mail-do-fcc): When writing to an Rmail file,
Browse files Browse the repository at this point in the history
use rmail-file-coding-system or else emacs-mule.
  • Loading branch information
Richard M. Stallman committed Sep 13, 1997
1 parent 6085f2c commit 195802e
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions lisp/mail/sendmail.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 195802e

Please sign in to comment.