aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Josefsson2003-05-13 19:48:50 +0000
committerSimon Josefsson2003-05-13 19:48:50 +0000
commit11c10f3bf063c8dc18bbcc78c877116c693bda45 (patch)
tree05f8870a359339a8c65296f182c7957229660cff
parent1e96c0077df6f41d0559bc41ae0009ea51a8faff (diff)
downloademacs-11c10f3bf063c8dc18bbcc78c877116c693bda45.tar.gz
emacs-11c10f3bf063c8dc18bbcc78c877116c693bda45.zip
(smtpmail-open-stream): Don't hard code
starttls-program.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/mail/smtpmail.el6
2 files changed, 9 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4bd6ff79a45..9af5f1a4f42 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12003-05-13 Simon Josefsson <jas@extundo.com>
2
3 * mail/smtpmail.el (smtpmail-open-stream): Don't hard code
4 starttls-program.
5
12003-05-13 Rajesh Vaidheeswarran <rv@gnu.org> 62003-05-13 Rajesh Vaidheeswarran <rv@gnu.org>
2 7
3 * whitespace.el (whitespace-global-mode): Add :link entry 8 * whitespace.el (whitespace-global-mode): Add :link entry
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el
index 2dbfa18f33a..2f15ac2fe73 100644
--- a/lisp/mail/smtpmail.el
+++ b/lisp/mail/smtpmail.el
@@ -1,6 +1,6 @@
1;;; smtpmail.el --- simple SMTP protocol (RFC 821) for sending mail 1;;; smtpmail.el --- simple SMTP protocol (RFC 821) for sending mail
2 2
3;; Copyright (C) 1995, 1996, 2001, 2002 Free Software Foundation, Inc. 3;; Copyright (C) 1995, 1996, 2001, 2002, 2003 Free Software Foundation, Inc.
4 4
5;; Author: Tomoji Kagatani <kagatani@rbc.ncl.omron.co.jp> 5;; Author: Tomoji Kagatani <kagatani@rbc.ncl.omron.co.jp>
6;; Maintainer: Simon Josefsson <simon@josefsson.org> 6;; Maintainer: Simon Josefsson <simon@josefsson.org>
@@ -457,7 +457,9 @@ This is relative to `smtpmail-queue-dir'.")
457 (let ((cred (smtpmail-find-credentials 457 (let ((cred (smtpmail-find-credentials
458 smtpmail-starttls-credentials host port))) 458 smtpmail-starttls-credentials host port)))
459 (if (null (and cred (condition-case () 459 (if (null (and cred (condition-case ()
460 (call-process "starttls") 460 (progn
461 (require 'starttls)
462 (call-process starttls-program))
461 (error nil)))) 463 (error nil))))
462 ;; The normal case. 464 ;; The normal case.
463 (open-network-stream "SMTP" process-buffer host port) 465 (open-network-stream "SMTP" process-buffer host port)