]> git.eshelyaron.com Git - emacs.git/commitdiff
[Backport] lisp/gnus/message.el (message-smtpmail-send-it): Make non-standard mail...
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Thu, 29 Jan 2015 02:28:18 +0000 (02:28 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 29 Jan 2015 02:28:18 +0000 (02:28 +0000)
lisp/gnus/ChangeLog
lisp/gnus/message.el

index d0a68b7f0ce6befa82ff7567acecc21fe9b321ed..592f34d6fbfa2607787394d1ac472c9c215b1e87 100644 (file)
@@ -1,3 +1,8 @@
+2015-01-29  Lars Ingebrigtsen  <larsi@gnus.org>
+
+       * message.el (message-smtpmail-send-it): Remove the mail header
+       separator before sending.
+
 2015-01-28  Elias Oltmanns  <eo@nebensachen.de>
 
        * nnimap.el (nnimap-find-expired-articles): Fix handling of
index c37b93975298c02d9413acf02ca7acb8e0ae4fea..646aa8ffeeef0782a39e18ff32d113cbc47b466e 100644 (file)
@@ -4828,6 +4828,11 @@ evaluates `message-send-mail-hook' just before sending a message.
 It is useful if your ISP requires the POP-before-SMTP
 authentication.  See the Gnus manual for details."
   (run-hooks 'message-send-mail-hook)
+  ;; Change header-delimiter to be what smtpmail expects.
+  (goto-char (point-min))
+  (when (re-search-forward
+        (concat "^" (regexp-quote mail-header-separator) "\n"))
+    (replace-match "\n"))
   (smtpmail-send-it))
 
 (defun message-send-mail-with-mailclient ()