Gnus development mailing list
 help / color / mirror / Atom feed
* How to use non-standard imap port?
@ 2015-05-25  1:55 Nikolaus Rath
  2015-05-25  2:21 ` How to use unencrypted imap connection? (was: How to use non-standard imap port?) Nikolaus Rath
  2015-05-26 15:13 ` How to use non-standard imap port? Nikolaus Rath
  0 siblings, 2 replies; 4+ messages in thread
From: Nikolaus Rath @ 2015-05-25  1:55 UTC (permalink / raw)
  To: ding

Hello,

I'd like to connect to a non-standard IMAP port (8421). I've added a
(nnimap-server-port "8421") entry to my nnimap entry in
gnus-secondary-select methods.

However, when I attempt to start Gnus the connection to the imap server
fails with

| Warning: Unable to open server nnimap due to: Wrong type argument: stringp, nil

I've tried to set nnimap-server-port to 8214 (instead of "8421")
instead, but that did not work either.

I've enabled "Enter Debugger on Error", but for some reason the debugger
is not actually entered (I assume Gnus somehow catches the error?).

I've also single stepped through the nnimap-open-connection-1 function,
but it runs just fine, so the error is happening at some later point.


Does anyone have a suggestion what I can do to find out where the
problem is?


Best,
-Nikolaus

-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«



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

* How to use unencrypted imap connection? (was: How to use non-standard imap port?)
  2015-05-25  1:55 How to use non-standard imap port? Nikolaus Rath
@ 2015-05-25  2:21 ` Nikolaus Rath
  2015-05-25 19:13   ` How to use unencrypted imap connection? Nikolaus Rath
  2015-05-26 15:13 ` How to use non-standard imap port? Nikolaus Rath
  1 sibling, 1 reply; 4+ messages in thread
From: Nikolaus Rath @ 2015-05-25  2:21 UTC (permalink / raw)
  To: ding

Hello,

It turns out I mis-diagnosed the problem. It's not setting
nnimap-server-port to "8421" that's causing the problem, but the setting
of nnimap-stream to plain. Using tls or network works just fine, but
encrypts the connection (and I want to look at it in Wireshark).

Anyone have a suggestion how to find out where exactly this setting is
causing problems?

Thanks,
-Nikolaus


On May 24 2015, Nikolaus Rath <Nikolaus@rath.org> wrote:
> Hello,
>
> I'd like to connect to a non-standard IMAP port (8421). I've added a
> (nnimap-server-port "8421") entry to my nnimap entry in
> gnus-secondary-select methods.
>
> However, when I attempt to start Gnus the connection to the imap server
> fails with
>
> | Warning: Unable to open server nnimap due to: Wrong type argument: stringp, nil
>
> I've tried to set nnimap-server-port to 8214 (instead of "8421")
> instead, but that did not work either.
>
> I've enabled "Enter Debugger on Error", but for some reason the debugger
> is not actually entered (I assume Gnus somehow catches the error?).
>
> I've also single stepped through the nnimap-open-connection-1 function,
> but it runs just fine, so the error is happening at some later point.
>
>
> Does anyone have a suggestion what I can do to find out where the
> problem is?
>
>
> Best,
> -Nikolaus
>
> -- 
> GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
> Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F
>
>              »Time flies like an arrow, fruit flies like a Banana.«


-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«



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

* Re: How to use unencrypted imap connection?
  2015-05-25  2:21 ` How to use unencrypted imap connection? (was: How to use non-standard imap port?) Nikolaus Rath
@ 2015-05-25 19:13   ` Nikolaus Rath
  0 siblings, 0 replies; 4+ messages in thread
From: Nikolaus Rath @ 2015-05-25 19:13 UTC (permalink / raw)
  To: ding

On May 24 2015, Nikolaus Rath <Nikolaus@rath.org> wrote:
> Hello,
>
> It turns out I mis-diagnosed the problem. It's not setting
> nnimap-server-port to "8421" that's causing the problem, but the setting
> of nnimap-stream to plain. Using tls or network works just fine, but
> encrypts the connection (and I want to look at it in Wireshark).
>
> Anyone have a suggestion how to find out where exactly this setting is
> causing problems?

Reported (with patch to fix it) at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20653.


Best,
-Nikolaus

-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«



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

* Re: How to use non-standard imap port?
  2015-05-25  1:55 How to use non-standard imap port? Nikolaus Rath
  2015-05-25  2:21 ` How to use unencrypted imap connection? (was: How to use non-standard imap port?) Nikolaus Rath
@ 2015-05-26 15:13 ` Nikolaus Rath
  1 sibling, 0 replies; 4+ messages in thread
From: Nikolaus Rath @ 2015-05-26 15:13 UTC (permalink / raw)
  To: ding

On May 24 2015, Nikolaus Rath <Nikolaus@rath.org> wrote:
> I've enabled "Enter Debugger on Error", but for some reason the debugger
> is not actually entered (I assume Gnus somehow catches the error?).

To answer that part of the question myself: the reason is that Gnus uses
condition-case to catch the error (presumably so it can still attempt to
open any other servers).

To enter the debugger, one has to either use debug-on-signal (but that
gives a lot of other debugger invocations as well), or change the
problematic condition-case to condition-case-unless-debug.

Best,
-Nikolaus

-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«



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

end of thread, other threads:[~2015-05-26 15:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-25  1:55 How to use non-standard imap port? Nikolaus Rath
2015-05-25  2:21 ` How to use unencrypted imap connection? (was: How to use non-standard imap port?) Nikolaus Rath
2015-05-25 19:13   ` How to use unencrypted imap connection? Nikolaus Rath
2015-05-26 15:13 ` How to use non-standard imap port? Nikolaus Rath

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).