Gnus development mailing list
 help / color / mirror / Atom feed
From: TSUCHIYA Masatoshi <tsuchiya@namazu.org>
To: ding@gnus.org
Subject: Re: Failed to open IMAP server
Date: Thu, 30 Oct 2014 14:59:38 +0900	[thread overview]
Message-ID: <8761f23xo5.fsf@tsuchiya.vaj.namazu.org> (raw)
In-Reply-To: <b4mbnouw2sh.fsf@jpl.org> (Katsumi Yamaoka's message of "Thu, 30 Oct 2014 14:21:34 +0900")

[-- Attachment #1: Type: text/plain, Size: 1357 bytes --]

>> On Thu, 30 Oct 2014 14:21:34 +0900
>> yamaoka@jpl.org (Katsumi Yamaoka) said as follows:

>> However, Gnus failed to open the IMAP server.  Its error message is:

>>     Unable to open server nnimap+imap.example.net due to: Wrong type
>>     argument: listp, #<process *nnimap*>

>> I used edebug to investigate the cause of this trouble, and found
>> that open-network-stream() is called wihtout `parameters' argument.

>Have you edebugged open-protocol-stream (proto-stream.el)?
>nnimap uses it instead, and it calls open-network-stream without
>`parameters' on some condition.

In my environment, Emacs 24.3 on Debian GNU/Linux,
open-protocol-stream() is defined as follows:

    (defalias 'open-protocol-stream 'open-network-stream)

in /usr/share/emacs/24.3/lisp/net/network-stream.el.
There is a conflict between two function definitions, maybe.

I explicitly load proto-stream.el distributed with Gnus, and tried
re-connection.  After that, Gnus's error message changed into:

    Warning: Unable to open server nnimap+imap.example.net due to: Wrong
    type argument: stringp, nil

It is able to suppress this error by the attached patch because
`capabilities' is equal to nil, however, I cannot enter any IMAP group.
I think that the attached patch is not right solution and my trouble may
be caused by the other origin.

-- 
TSUCHIYA Masatoshi

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-diff, Size: 439 bytes --]

--- a/lisp/nnimap.el
+++ b/lisp/nnimap.el
@@ -443,7 +443,7 @@ textual parts.")
 	    (setf (nnimap-greeting nnimap-object) greeting)
 	    (setf (nnimap-capabilities nnimap-object)
 		  (mapcar #'upcase
-			  (split-string capabilities)))
+			  (and capabilities (split-string capabilities))))
 	    (unless (gnus-string-match-p "[*.] PREAUTH" greeting)
 	      (if (not (setq credentials
 			     (if (eq nnimap-authenticator 'anonymous)

  parent reply	other threads:[~2014-10-30  5:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-30  4:02 TSUCHIYA Masatoshi
2014-10-30  5:21 ` Katsumi Yamaoka
2014-10-30  5:36   ` Katsumi Yamaoka
2014-10-30  5:59   ` TSUCHIYA Masatoshi [this message]
2014-11-17 14:22 ` TSUCHIYA Masatoshi

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=8761f23xo5.fsf@tsuchiya.vaj.namazu.org \
    --to=tsuchiya@namazu.org \
    --cc=ding@gnus.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.
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).