]> git.eshelyaron.com Git - emacs.git/commitdiff
(smtpmail-via-smtp): Only negotiate starttls on
authorSimon Josefsson <jas@extundo.com>
Sun, 29 Sep 2002 03:19:55 +0000 (03:19 +0000)
committerSimon Josefsson <jas@extundo.com>
Sun, 29 Sep 2002 03:19:55 +0000 (03:19 +0000)
streams that were opened using starttls.

lisp/ChangeLog
lisp/mail/smtpmail.el

index 8390ae6cfd41339e7bc77445ca1eebd985288f8a..2ae988880174bf9cd4f6b6dabac94bb846431ba1 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-28  Simon Josefsson  <jas@extundo.com>
+
+       * mail/smtpmail.el (smtpmail-via-smtp): Only negotiate starttls on
+       streams that were opened using starttls.
+
 2002-09-28  Paul Reilly  <pmr@pajato.com>
 
        * files.el (auto-mode-alist): Add support for Java Enterprise
index 78393348c5dfd86379a5585f52fbd7f474197426..82fbfdad5ed3ce96a701bddd77d4bfaede97cd63 100644 (file)
@@ -613,7 +613,7 @@ This is relative to `smtpmail-queue-dir'.")
            (if (and do-starttls
                     (smtpmail-find-credentials smtpmail-starttls-credentials host port)
                     (member 'starttls supported-extensions)
-                    (process-id process))
+                    (numberp (process-id process)))
                (progn
                  (smtpmail-send-command process (format "STARTTLS"))
                  (if (or (null (car (setq response-code (smtpmail-read-response process))))