]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug #7589 with EOL format in smtpmail's queued mail.
authorEli Zaretskii <eliz@gnu.org>
Mon, 13 Dec 2010 15:12:01 +0000 (17:12 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 13 Dec 2010 15:12:01 +0000 (17:12 +0200)
 mail/smtpmail.el (smtpmail-send-it): Write queued mail body with Unix EOLs.

lisp/ChangeLog
lisp/mail/smtpmail.el

index bd5d55768671f99f2ef754dc132fff8a575e784b..30564b9b790a40f50b988eedde69a8bdda21dd92 100644 (file)
@@ -1,3 +1,8 @@
+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
index 62bfbb740c42d0b99db657faf4aa44cdafbab24b..7aed6a549ef314c4fe59ed881c20c5da07148fe4 100644 (file)
@@ -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)