From 11c10f3bf063c8dc18bbcc78c877116c693bda45 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Tue, 13 May 2003 19:48:50 +0000 Subject: [PATCH] (smtpmail-open-stream): Don't hard code starttls-program. --- lisp/ChangeLog | 5 +++++ lisp/mail/smtpmail.el | 6 ++++-- 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 @@ +2003-05-13 Simon Josefsson + + * mail/smtpmail.el (smtpmail-open-stream): Don't hard code + starttls-program. + 2003-05-13 Rajesh Vaidheeswarran * 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 @@ ;;; smtpmail.el --- simple SMTP protocol (RFC 821) for sending mail -;; Copyright (C) 1995, 1996, 2001, 2002 Free Software Foundation, Inc. +;; Copyright (C) 1995, 1996, 2001, 2002, 2003 Free Software Foundation, Inc. ;; Author: Tomoji Kagatani ;; Maintainer: Simon Josefsson @@ -457,7 +457,9 @@ This is relative to `smtpmail-queue-dir'.") (let ((cred (smtpmail-find-credentials smtpmail-starttls-credentials host port))) (if (null (and cred (condition-case () - (call-process "starttls") + (progn + (require 'starttls) + (call-process starttls-program)) (error nil)))) ;; The normal case. (open-network-stream "SMTP" process-buffer host port) -- 2.39.2