diff options
| author | Lars Magne Ingebrigtsen | 2015-01-29 02:22:21 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2015-01-29 02:22:21 +0000 |
| commit | 212c818940c420d2ef36a31ccb2fc0a110b1588b (patch) | |
| tree | 0536efc3940802eeefda1d869c2ee6c34b66f683 | |
| parent | cdee38ab61b383f1190d29470319bce3693c7dd9 (diff) | |
| download | emacs-212c818940c420d2ef36a31ccb2fc0a110b1588b.tar.gz emacs-212c818940c420d2ef36a31ccb2fc0a110b1588b.zip | |
lisp/gnus/message.el (message-smtpmail-send-it): Make non-standard mail header separators work with smtpmail
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index a200216424d..3927f090d76 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2015-01-29 Lars Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * message.el (message-smtpmail-send-it): Remove the mail header | ||
| 4 | separator before sending. | ||
| 5 | |||
| 1 | 2015-01-28 Elias Oltmanns <eo@nebensachen.de> | 6 | 2015-01-28 Elias Oltmanns <eo@nebensachen.de> |
| 2 | 7 | ||
| 3 | * nnimap.el (nnimap-find-expired-articles): Fix handling of | 8 | * nnimap.el (nnimap-find-expired-articles): Fix handling of |
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index de7e9bab8ec..a06de2a6414 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -4906,6 +4906,11 @@ evaluates `message-send-mail-hook' just before sending a message. | |||
| 4906 | It is useful if your ISP requires the POP-before-SMTP | 4906 | It is useful if your ISP requires the POP-before-SMTP |
| 4907 | authentication. See the Gnus manual for details." | 4907 | authentication. See the Gnus manual for details." |
| 4908 | (run-hooks 'message-send-mail-hook) | 4908 | (run-hooks 'message-send-mail-hook) |
| 4909 | ;; Change header-delimiter to be what smtpmail expects. | ||
| 4910 | (goto-char (point-min)) | ||
| 4911 | (when (re-search-forward | ||
| 4912 | (concat "^" (regexp-quote mail-header-separator) "\n")) | ||
| 4913 | (replace-match "\n")) | ||
| 4909 | (smtpmail-send-it)) | 4914 | (smtpmail-send-it)) |
| 4910 | 4915 | ||
| 4911 | (defun message-send-mail-with-mailclient () | 4916 | (defun message-send-mail-with-mailclient () |