aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Josefsson2002-09-29 03:19:55 +0000
committerSimon Josefsson2002-09-29 03:19:55 +0000
commitf029e7b0e917f0e349806b40ea3deb0f71d50141 (patch)
tree31249bf0ccb1dd21b91e31ef76c2f6208365afff
parent94e4a2948d47724e3397673de8919ddf7aef6f8d (diff)
downloademacs-f029e7b0e917f0e349806b40ea3deb0f71d50141.tar.gz
emacs-f029e7b0e917f0e349806b40ea3deb0f71d50141.zip
(smtpmail-via-smtp): Only negotiate starttls on
streams that were opened using starttls.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/mail/smtpmail.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8390ae6cfd4..2ae98888017 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12002-09-28 Simon Josefsson <jas@extundo.com>
2
3 * mail/smtpmail.el (smtpmail-via-smtp): Only negotiate starttls on
4 streams that were opened using starttls.
5
12002-09-28 Paul Reilly <pmr@pajato.com> 62002-09-28 Paul Reilly <pmr@pajato.com>
2 7
3 * files.el (auto-mode-alist): Add support for Java Enterprise 8 * files.el (auto-mode-alist): Add support for Java Enterprise
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el
index 78393348c5d..82fbfdad5ed 100644
--- a/lisp/mail/smtpmail.el
+++ b/lisp/mail/smtpmail.el
@@ -613,7 +613,7 @@ This is relative to `smtpmail-queue-dir'.")
613 (if (and do-starttls 613 (if (and do-starttls
614 (smtpmail-find-credentials smtpmail-starttls-credentials host port) 614 (smtpmail-find-credentials smtpmail-starttls-credentials host port)
615 (member 'starttls supported-extensions) 615 (member 'starttls supported-extensions)
616 (process-id process)) 616 (numberp (process-id process)))
617 (progn 617 (progn
618 (smtpmail-send-command process (format "STARTTLS")) 618 (smtpmail-send-command process (format "STARTTLS"))
619 (if (or (null (car (setq response-code (smtpmail-read-response process)))) 619 (if (or (null (car (setq response-code (smtpmail-read-response process))))