aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2015-01-29 02:28:18 +0000
committerKatsumi Yamaoka2015-01-29 02:28:18 +0000
commitc96c93fad1bc0c15a6e680ac38c2cbc56e55bed9 (patch)
tree7c7b369f31495554c755e9a900352841feef7308
parent7779da6fc1ff3628e1b754a5bef898d8fbdb4b7b (diff)
downloademacs-c96c93fad1bc0c15a6e680ac38c2cbc56e55bed9.tar.gz
emacs-c96c93fad1bc0c15a6e680ac38c2cbc56e55bed9.zip
[Backport] lisp/gnus/message.el (message-smtpmail-send-it): Make non-standard mail header separators work with smtpmail
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/message.el5
2 files changed, 10 insertions, 0 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index d0a68b7f0ce..592f34d6fbf 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
12015-01-29 Lars Ingebrigtsen <larsi@gnus.org>
2
3 * message.el (message-smtpmail-send-it): Remove the mail header
4 separator before sending.
5
12015-01-28 Elias Oltmanns <eo@nebensachen.de> 62015-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 c37b9397529..646aa8ffeee 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -4828,6 +4828,11 @@ evaluates `message-send-mail-hook' just before sending a message.
4828It is useful if your ISP requires the POP-before-SMTP 4828It is useful if your ISP requires the POP-before-SMTP
4829authentication. See the Gnus manual for details." 4829authentication. See the Gnus manual for details."
4830 (run-hooks 'message-send-mail-hook) 4830 (run-hooks 'message-send-mail-hook)
4831 ;; Change header-delimiter to be what smtpmail expects.
4832 (goto-char (point-min))
4833 (when (re-search-forward
4834 (concat "^" (regexp-quote mail-header-separator) "\n"))
4835 (replace-match "\n"))
4831 (smtpmail-send-it)) 4836 (smtpmail-send-it))
4832 4837
4833(defun message-send-mail-with-mailclient () 4838(defun message-send-mail-with-mailclient ()