From: Robert Pluim <rpluim@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Does service lookup by name work on Windows now?
Date: Mon, 28 Jan 2019 11:12:15 +0100 [thread overview]
Message-ID: <m2r2cxozuo.fsf@gmail.com> (raw)
In-Reply-To: <83a7jn60iu.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 26 Jan 2019 14:55:53 +0200")
[-- Attachment #1: Type: text/plain, Size: 353 bytes --]
Eli Zaretskii <eliz@gnu.org> writes:
>> Iʼd really like to remove that workaround, but I could leave it in,
>> conditioned on (eq system-type 'windows-nt) or similar.
>
> Conditioning is fine with me. We could also look at
>
> (car (x-server-version))
>
> It should be 5 or less for XP and older systems.
This is what I have so far.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Don-t-map-imaps-to-993-anymore-except-on-old-Windows.patch --]
[-- Type: text/x-patch, Size: 1071 bytes --]
From 696e57b862b9d525aae1a735f922025d8fa40bfd Mon Sep 17 00:00:00 2001
From: Robert Pluim <rpluim@gmail.com>
Date: Sun, 27 Jan 2019 16:13:46 +0100
Subject: [PATCH] Don't map imaps to 993 anymore except on old Windows versions
To: emacs-devel@gnu.org
'open-network-stream' will do the imaps service lookup itself, and
using 993 forced the user to use the numeric value in .authinfo for
certificate lookups.
* lisp/gnus/nnimap.el (nnimap-map-port): Only do mapping for Windows
XP or earlier.
---
lisp/gnus/nnimap.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index 75b5af8aab..9646bb51d0 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -413,8 +413,11 @@ nnimap-open-connection
nil
stream)))
+;; This is only needed for Windows XP or earlier
(defun nnimap-map-port (port)
- (if (equal port "imaps")
+ (if (and (eq system-type 'windows-nt)
+ (<= (car (x-server-version)) 5)
+ (equal port "imaps"))
"993"
port))
--
2.20.1.142.g77556354bb
next prev parent reply other threads:[~2019-01-28 10:12 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-26 11:00 Does service lookup by name work on Windows now? Robert Pluim
2019-01-26 11:56 ` Eli Zaretskii
2019-01-26 12:05 ` Robert Pluim
2019-01-26 12:23 ` Eli Zaretskii
2019-01-26 12:34 ` Robert Pluim
2019-01-26 12:55 ` Eli Zaretskii
2019-01-26 22:46 ` Richard Stallman
2019-01-27 5:11 ` Tim Cross
2019-01-27 21:08 ` Alexandre Garreau
2019-01-27 23:34 ` Richard Stallman
2019-01-28 3:31 ` Eli Zaretskii
2019-01-28 11:03 ` Alexandre Garreau
2019-01-30 3:31 ` Richard Stallman
2019-01-28 10:12 ` Robert Pluim [this message]
2019-01-28 15:44 ` Eli Zaretskii
2019-02-04 13:02 ` Robert Pluim
2019-02-04 16:14 ` Eli Zaretskii
2019-02-04 16:53 ` Robert Pluim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2r2cxozuo.fsf@gmail.com \
--to=rpluim@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.