]> git.eshelyaron.com Git - emacs.git/commitdiff
Respect smtpmail-smtp-service when doing a trial connection
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 14 Feb 2012 15:31:49 +0000 (16:31 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 14 Feb 2012 15:31:49 +0000 (16:31 +0100)
* mail/smtpmail.el (smtpmail-query-smtp-server): Fix typo in the
way the ports list is computed.

lisp/ChangeLog
lisp/mail/smtpmail.el

index 94f5ebcb600b6a2b75b784aabf66905973205d3d..437b3e30f2b1a47ebedc2cedc53f86a0bfcecbfd 100644 (file)
@@ -1,3 +1,8 @@
+2012-02-14  Lars Ingebrigtsen  <larsi@gnus.org>
+
+       * mail/smtpmail.el (smtpmail-query-smtp-server): Fix typo in the
+       way the ports list is computed.
+
 2012-02-14  Teodor Zlatanov  <tzz@lifelogs.com>
 
        * net/gnutls.el (gnutls-trustfiles): Add Cygwin location.
index 99283bebf9def5e7d4fc97b559f60ed0587fb519..fcec5008c9844df577cfad1b3cf735993d237ea8 100644 (file)
@@ -597,11 +597,11 @@ The list is in preference order.")
 
 (defun smtpmail-query-smtp-server ()
   (let ((server (read-string "Outgoing SMTP mail server: "))
-       (ports '("smtp" 587))
+       (ports '(25 587))
        stream port)
-    (when (and smtpmail-smtp-server
-              (not (member smtpmail-smtp-server ports)))
-      (push smtpmail-smtp-server ports))
+    (when (and smtpmail-smtp-service
+              (not (member smtpmail-smtp-service ports)))
+      (push smtpmail-smtp-service ports))
     (while (and (not smtpmail-smtp-server)
                (setq port (pop ports)))
       (when (setq stream (condition-case ()