From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85195 Path: news.gmane.org!not-for-mail From: TSUCHIYA Masatoshi Newsgroups: gmane.emacs.gnus.general Subject: Re: Failed to open IMAP server Date: Thu, 30 Oct 2014 14:59:38 +0900 Message-ID: <8761f23xo5.fsf@tsuchiya.vaj.namazu.org> References: <87fve6mcgy.fsf@tsuchiya.vaj.namazu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1414648829 21058 80.91.229.3 (30 Oct 2014 06:00:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Oct 2014 06:00:29 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33439@lists.math.uh.edu Thu Oct 30 07:00:22 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XjimU-00087f-2p for ding-account@gmane.org; Thu, 30 Oct 2014 07:00:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Xjim8-0001ka-Dc; Thu, 30 Oct 2014 01:00:00 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Xjilw-0001kA-TO for ding@lists.math.uh.edu; Thu, 30 Oct 2014 00:59:49 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1Xjilr-0001p0-EB for ding@lists.math.uh.edu; Thu, 30 Oct 2014 00:59:48 -0500 Original-Received: from vaj.namazu.org ([202.221.179.42]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1Xjilp-0002W6-Fb for ding@gnus.org; Thu, 30 Oct 2014 06:59:41 +0100 Original-Received: from vaj.namazu.org (vaj.namazu.org [202.221.179.42]) by vaj.namazu.org (Postfix) with ESMTP id 04F352600D7 for ; Thu, 30 Oct 2014 14:59:38 +0900 (JST) X-cite: xcite 1.53 Mail-Followup-To: ding@gnus.org In-Reply-To: (Katsumi Yamaoka's message of "Thu, 30 Oct 2014 14:21:34 +0900") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/23.4 (gnu/linux) X-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:85195 Archived-At: --=-=-= Content-Type: text/plain >> 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, # >> 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 --=-=-= Content-Type: text/x-diff Content-Disposition: inline --- 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) --=-=-=--