diff options
| author | Eli Zaretskii | 2012-03-09 13:06:44 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2012-03-09 13:06:44 +0200 |
| commit | 3f018d6d392cacb025c8de92bfabf4d7a92ade52 (patch) | |
| tree | d92705069281f146e8e96461bdeeffa03880329d | |
| parent | f7fd3d79b702f5fc1211d0d3d104455b7bf04407 (diff) | |
| download | emacs-3f018d6d392cacb025c8de92bfabf4d7a92ade52.tar.gz emacs-3f018d6d392cacb025c8de92bfabf4d7a92ade52.zip | |
Make sure smtpmail produces valid mbox files with Unix EOLs for FCC.
lisp/mail/smtpmail.el (smtpmail-send-it): Bind
coding-system-for-write to *-unix, so that FCC files are kept in
valid mbox format.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/mail/smtpmail.el | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index db93ab69876..e21cf0b6bba 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-03-09 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * mail/smtpmail.el (smtpmail-send-it): Bind | ||
| 4 | coding-system-for-write to *-unix, so that FCC files are kept in | ||
| 5 | valid mbox format. | ||
| 6 | |||
| 1 | 2012-03-09 Glenn Morris <rgm@gnu.org> | 7 | 2012-03-09 Glenn Morris <rgm@gnu.org> |
| 2 | 8 | ||
| 3 | * files.el (dir-locals-find-file): | 9 | * files.el (dir-locals-find-file): |
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el index 3233cff2768..8e96e2c9438 100644 --- a/lisp/mail/smtpmail.el +++ b/lisp/mail/smtpmail.el | |||
| @@ -324,7 +324,10 @@ The list is in preference order.") | |||
| 324 | (if (re-search-forward "^FCC:" delimline t) | 324 | (if (re-search-forward "^FCC:" delimline t) |
| 325 | ;; Force `mail-do-fcc' to use the encoding of the mail | 325 | ;; Force `mail-do-fcc' to use the encoding of the mail |
| 326 | ;; buffer to encode outgoing messages on FCC files. | 326 | ;; buffer to encode outgoing messages on FCC files. |
| 327 | (let ((coding-system-for-write smtpmail-code-conv-from)) | 327 | (let ((coding-system-for-write |
| 328 | ;; mbox files must have Unix EOLs. | ||
| 329 | (coding-system-change-eol-conversion | ||
| 330 | smtpmail-code-conv-from 'unix))) | ||
| 328 | (mail-do-fcc delimline))) | 331 | (mail-do-fcc delimline))) |
| 329 | (if mail-interactive | 332 | (if mail-interactive |
| 330 | (with-current-buffer errbuf | 333 | (with-current-buffer errbuf |