diff options
| author | Eli Zaretskii | 2010-12-13 17:12:01 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2010-12-13 17:12:01 +0200 |
| commit | 95e4cc854b04f98815f572218df0f93eebf7e13a (patch) | |
| tree | d6051f31223c464e99526672e27a41ebf71c93c5 | |
| parent | 11aad4e9f9f54ce8e9ecc66347e512b20a3cdf39 (diff) | |
| download | emacs-95e4cc854b04f98815f572218df0f93eebf7e13a.tar.gz emacs-95e4cc854b04f98815f572218df0f93eebf7e13a.zip | |
Fix bug #7589 with EOL format in smtpmail's queued mail.
mail/smtpmail.el (smtpmail-send-it): Write queued mail body with Unix EOLs.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/mail/smtpmail.el | 9 |
2 files changed, 13 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index bd5d5576867..30564b9b790 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-12-13 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * mail/smtpmail.el (smtpmail-send-it): Write queued mail body with | ||
| 4 | Unix EOLs. (Bug#7589) | ||
| 5 | |||
| 1 | 2010-12-12 Eli Zaretskii <eliz@gnu.org> | 6 | 2010-12-12 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * subr.el (posn-col-row): Evaluate header-line-format in the | 8 | * subr.el (posn-col-row): Evaluate header-line-format in the |
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el index 62bfbb740c4..7aed6a549ef 100644 --- a/lisp/mail/smtpmail.el +++ b/lisp/mail/smtpmail.el | |||
| @@ -392,7 +392,14 @@ The list is in preference order.") | |||
| 392 | (make-directory smtpmail-queue-dir t)) | 392 | (make-directory smtpmail-queue-dir t)) |
| 393 | (with-current-buffer buffer-data | 393 | (with-current-buffer buffer-data |
| 394 | (erase-buffer) | 394 | (erase-buffer) |
| 395 | (set-buffer-file-coding-system smtpmail-code-conv-from nil t) | 395 | (set-buffer-file-coding-system |
| 396 | ;; We will be reading the file with no-conversion in | ||
| 397 | ;; smtpmail-send-queued-mail below, so write it out | ||
| 398 | ;; with Unix EOLs. | ||
| 399 | (coding-system-change-eol-conversion | ||
| 400 | (or smtpmail-code-conv-from 'undecided) | ||
| 401 | 'unix) | ||
| 402 | nil t) | ||
| 396 | (insert-buffer-substring tembuf) | 403 | (insert-buffer-substring tembuf) |
| 397 | (write-file file-data) | 404 | (write-file file-data) |
| 398 | (set-buffer buffer-elisp) | 405 | (set-buffer buffer-elisp) |