aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/mail/smtpmail.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el
index 3cf17f8968d..931e1417a2d 100644
--- a/lisp/mail/smtpmail.el
+++ b/lisp/mail/smtpmail.el
@@ -396,7 +396,7 @@ This is relative to `smtpmail-queue-dir'.")
396 ;;; mail, send it, etc... 396 ;;; mail, send it, etc...
397 (let ((file-msg "")) 397 (let ((file-msg ""))
398 (insert-file-contents smtpmail-queue-index) 398 (insert-file-contents smtpmail-queue-index)
399 (beginning-of-buffer) 399 (goto-char (point-min))
400 (while (not (eobp)) 400 (while (not (eobp))
401 (setq file-msg (buffer-substring (point) (line-end-position))) 401 (setq file-msg (buffer-substring (point) (line-end-position)))
402 (load file-msg) 402 (load file-msg)
@@ -465,11 +465,14 @@ This is relative to `smtpmail-queue-dir'.")
465 (push el2 result))) 465 (push el2 result)))
466 (nreverse result))) 466 (nreverse result)))
467 467
468(defvar starttls-extra-args)
469(defvar starttls-extra-arguments)
470
468(defun smtpmail-open-stream (process-buffer host port) 471(defun smtpmail-open-stream (process-buffer host port)
469 (let ((cred (smtpmail-find-credentials 472 (let ((cred (smtpmail-find-credentials
470 smtpmail-starttls-credentials host port))) 473 smtpmail-starttls-credentials host port)))
471 (if (null (and cred (condition-case () 474 (if (null (and cred (condition-case ()
472 (progn 475 (with-no-warnings
473 (require 'starttls) 476 (require 'starttls)
474 (call-process (if starttls-use-gnutls 477 (call-process (if starttls-use-gnutls
475 starttls-gnutls-program 478 starttls-gnutls-program