diff options
| author | Simon Josefsson | 2004-05-28 05:56:19 +0000 |
|---|---|---|
| committer | Simon Josefsson | 2004-05-28 05:56:19 +0000 |
| commit | 4aa609dc300e11fbb28cb4fba2e4330fb6bab82f (patch) | |
| tree | c6b5027b5ad8015455597239dc7d1a43c2e85f23 | |
| parent | c7bd999c1c9daec7e815da6fd7beb92c043c5be7 (diff) | |
| download | emacs-4aa609dc300e11fbb28cb4fba2e4330fb6bab82f.tar.gz emacs-4aa609dc300e11fbb28cb4fba2e4330fb6bab82f.zip | |
(smtpmail-open-stream): Bind
starttls-extra-arguments too, if starttls.el uses GNUTLS.
| -rw-r--r-- | lisp/mail/smtpmail.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el index 60831b259d8..84a61350145 100644 --- a/lisp/mail/smtpmail.el +++ b/lisp/mail/smtpmail.el | |||
| @@ -483,7 +483,14 @@ This is relative to `smtpmail-queue-dir'.") | |||
| 483 | (setq cred-key (expand-file-name cred-key))) | 483 | (setq cred-key (expand-file-name cred-key))) |
| 484 | (file-regular-p | 484 | (file-regular-p |
| 485 | (setq cred-cert (expand-file-name cred-cert)))) | 485 | (setq cred-cert (expand-file-name cred-cert)))) |
| 486 | (list "--key-file" cred-key "--cert-file" cred-cert)))) | 486 | (list "--key-file" cred-key "--cert-file" cred-cert))) |
| 487 | (starttls-extra-arguments | ||
| 488 | (when (and (stringp cred-key) (stringp cred-cert) | ||
| 489 | (file-regular-p | ||
| 490 | (setq cred-key (expand-file-name cred-key))) | ||
| 491 | (file-regular-p | ||
| 492 | (setq cred-cert (expand-file-name cred-cert)))) | ||
| 493 | (list "--x509keyfile" cred-key "--x509certfile" cred-cert)))) | ||
| 487 | (starttls-open-stream "SMTP" process-buffer host port))))) | 494 | (starttls-open-stream "SMTP" process-buffer host port))))) |
| 488 | 495 | ||
| 489 | (defun smtpmail-try-auth-methods (process supported-extensions host port) | 496 | (defun smtpmail-try-auth-methods (process supported-extensions host port) |