Gnus development mailing list
 help / color / mirror / Atom feed
* nnimap-server-port being ignored?
@ 2010-11-28  7:19 Malcolm Purvis
  2010-11-28  8:58 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: Malcolm Purvis @ 2010-11-28  7:19 UTC (permalink / raw)
  To: ding

I have an imap server that it accessed via a custom port (being a ssh
tunnel to the real machine):

 (nnimap "home"
	 (nnimap-address "localhost")
	 (nnimap-server-port 11143)
	 (nnimap-stream network)
	 )

However, I get a Connection Refused error when I try to talk to the
server.  After some digging, it looks like the value of
nnimap-server-port is being ignored, because passing the correct value
to open-protocol-stream makes things work again:

diff --git a/lisp/nnimap.el b/lisp/nnimap.el
index 4bdf96b..b259a61 100644
--- a/lisp/nnimap.el
+++ b/lisp/nnimap.el
@@ -350,7 +350,7 @@ textual parts.")
        (push (format "%s" nnimap-server-port) ports))
       (destructuring-bind (stream greeting capabilities)
          (open-protocol-stream
-          "*nnimap*" (current-buffer) nnimap-address (car (last ports))
+          "*nnimap*" (current-buffer) nnimap-address "11143";(car (last ports))
           :type nnimap-stream
           :shell-command nnimap-shell-program
           :capability-command "1 CAPABILITY\r\n"

The value of 'ports' at this point is ("11143" "143" "imap").

Thanks,

Malcolm

-- 
		     Malcolm Purvis <malcolmp@xemacs.org>



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-12-01 16:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-28  7:19 nnimap-server-port being ignored? Malcolm Purvis
2010-11-28  8:58 ` Lars Magne Ingebrigtsen
2010-11-28 17:20   ` Tommy Kelly
2010-11-29  4:24     ` Lars Magne Ingebrigtsen
2010-11-30 15:50       ` Tommy Kelly
2010-12-01 16:56         ` Lars Magne Ingebrigtsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).