diff options
| author | Lars Ingebrigtsen | 2012-02-14 16:31:49 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2012-02-14 16:31:49 +0100 |
| commit | d29b2b4cb7b0c4c6f4d5c20be427996865561b03 (patch) | |
| tree | a69146f1c36f207ce40b9bbc654b2318ee846fcd /lisp | |
| parent | 6a24cbb1a20b7d53fbe29ea4feb34a42cf083948 (diff) | |
| download | emacs-d29b2b4cb7b0c4c6f4d5c20be427996865561b03.tar.gz emacs-d29b2b4cb7b0c4c6f4d5c20be427996865561b03.zip | |
Respect smtpmail-smtp-service when doing a trial connection
* mail/smtpmail.el (smtpmail-query-smtp-server): Fix typo in the
way the ports list is computed.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/mail/smtpmail.el | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 94f5ebcb600..437b3e30f2b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-02-14 Lars Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * mail/smtpmail.el (smtpmail-query-smtp-server): Fix typo in the | ||
| 4 | way the ports list is computed. | ||
| 5 | |||
| 1 | 2012-02-14 Teodor Zlatanov <tzz@lifelogs.com> | 6 | 2012-02-14 Teodor Zlatanov <tzz@lifelogs.com> |
| 2 | 7 | ||
| 3 | * net/gnutls.el (gnutls-trustfiles): Add Cygwin location. | 8 | * net/gnutls.el (gnutls-trustfiles): Add Cygwin location. |
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el index 99283bebf9d..fcec5008c98 100644 --- a/lisp/mail/smtpmail.el +++ b/lisp/mail/smtpmail.el | |||
| @@ -597,11 +597,11 @@ The list is in preference order.") | |||
| 597 | 597 | ||
| 598 | (defun smtpmail-query-smtp-server () | 598 | (defun smtpmail-query-smtp-server () |
| 599 | (let ((server (read-string "Outgoing SMTP mail server: ")) | 599 | (let ((server (read-string "Outgoing SMTP mail server: ")) |
| 600 | (ports '("smtp" 587)) | 600 | (ports '(25 587)) |
| 601 | stream port) | 601 | stream port) |
| 602 | (when (and smtpmail-smtp-server | 602 | (when (and smtpmail-smtp-service |
| 603 | (not (member smtpmail-smtp-server ports))) | 603 | (not (member smtpmail-smtp-service ports))) |
| 604 | (push smtpmail-smtp-server ports)) | 604 | (push smtpmail-smtp-service ports)) |
| 605 | (while (and (not smtpmail-smtp-server) | 605 | (while (and (not smtpmail-smtp-server) |
| 606 | (setq port (pop ports))) | 606 | (setq port (pop ports))) |
| 607 | (when (setq stream (condition-case () | 607 | (when (setq stream (condition-case () |