Commit 95e4cc85 authored by Eli Zaretskii's avatar Eli Zaretskii

Fix bug #7589 with EOL format in smtpmail's queued mail.

 mail/smtpmail.el (smtpmail-send-it): Write queued mail body with Unix EOLs.
parent 11aad4e9
2010-12-13 Eli Zaretskii <eliz@gnu.org>
* mail/smtpmail.el (smtpmail-send-it): Write queued mail body with
Unix EOLs. (Bug#7589)
2010-12-12 Eli Zaretskii <eliz@gnu.org>
* subr.el (posn-col-row): Evaluate header-line-format in the
......
......@@ -392,7 +392,14 @@ The list is in preference order.")
(make-directory smtpmail-queue-dir t))
(with-current-buffer buffer-data
(erase-buffer)
(set-buffer-file-coding-system smtpmail-code-conv-from nil t)
(set-buffer-file-coding-system
;; We will be reading the file with no-conversion in
;; smtpmail-send-queued-mail below, so write it out
;; with Unix EOLs.
(coding-system-change-eol-conversion
(or smtpmail-code-conv-from 'undecided)
'unix)
nil t)
(insert-buffer-substring tembuf)
(write-file file-data)
(set-buffer buffer-elisp)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment