]> git.eshelyaron.com Git - emacs.git/commitdiff
* mail/smtpmail.el (smtpmail-via-smtp): Fix STARTTLS detection.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 27 Sep 2011 17:45:18 +0000 (19:45 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 27 Sep 2011 17:45:18 +0000 (19:45 +0200)
Fixes: debbugs:9615
lisp/ChangeLog
lisp/mail/smtpmail.el

index 50dccb43b3b42b9c6d6382f0f12a253b16b0afdc..8bbb7f5fcc85c886398dbe07a7115ceb1282ca29 100644 (file)
@@ -1,3 +1,8 @@
+2011-09-27  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * mail/smtpmail.el (smtpmail-via-smtp): Fix STARTTLS detection
+       (bug#9615).
+
 2011-09-27  Chong Yidong  <cyd@stupidchicken.com>
 
        * emacs-lisp/package.el (list-packages): Fix echo area message.
index 1c6f2c7b7ed33aa8ca8d9d8c4d6003860282b69c..edcc82011afbf2f343b9f83f54500a6629dddfe9 100644 (file)
@@ -658,7 +658,7 @@ The list is in preference order.")
                   :always-query-capabilities t
                   :starttls-function
                   (lambda (capabilities)
-                    (and (string-match "-STARTTLS" capabilities)
+                    (and (string-match "[ -]STARTTLS" capabilities)
                          "STARTTLS\r\n"))
                   :client-certificate t
                   :use-starttls-if-possible t)))