From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/70918 Path: news.gmane.org!not-for-mail From: Knut Anders Hatlen Newsgroups: gmane.emacs.gnus.general Subject: Re: Releasing the new nnimap on y'all soon Date: Fri, 17 Sep 2010 21:20:54 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1284751285 14595 80.91.229.12 (17 Sep 2010 19:21:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Sep 2010 19:21:25 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M19291@lists.math.uh.edu Fri Sep 17 21:21:24 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OwgUt-0004oY-AW for ding-account@gmane.org; Fri, 17 Sep 2010 21:21:23 +0200 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 1OwgUp-0001rq-12; Fri, 17 Sep 2010 14:21:19 -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 1OwgUn-0001rd-Ly for ding@lists.math.uh.edu; Fri, 17 Sep 2010 14:21:17 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1OwgUj-0007A4-D7 for ding@lists.math.uh.edu; Fri, 17 Sep 2010 14:21:17 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1OwgUi-0004vm-00 for ; Fri, 17 Sep 2010 21:21:12 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OwgUf-0004hr-NR for ding@gnus.org; Fri, 17 Sep 2010 21:21:09 +0200 Original-Received: from gw2.mysql.com ([213.136.52.1]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Sep 2010 21:21:09 +0200 Original-Received: from kahatlen by gw2.mysql.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Sep 2010 21:21:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 57 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: gw2.mysql.com User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (usg-unix-v) Cancel-Lock: sha1:UhzCDUyIYHbUDhKqSKF/IqgUk7U= X-Spam-Score: -1.0 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:70918 Archived-At: Lars Magne Ingebrigtsen writes: > Knut Anders Hatlen writes: > >> I had one server that used nnimap-stream shell, and it stopped working >> since we now only support imap and ssl streams now. Any plans of adding >> shell streams back? > > It's now back. > >> My other nnimap server talked to imap.gmail.com over an ssl stream, but >> it failed to connect because there was no imaps entry in /etc/services >> (this was on Solaris). > > Hm... yes, that has to be fixed. But where did it bug out? Did you > get a backtrace? Yes, I got one, but I'm not sure it's very helpful: Debugger entered--Lisp error: (error "Buffer *nnimap imap.gmail.com nil *nntpd**<3> has no process") process-send-string(nil "56 EXAMINE \"INBOX\" \n") nnimap-send-command("EXAMINE %S" "INBOX") (...) The root cause is the call to open-tls-stream from nnimap-open-connection where the port argument is "imaps" if nnimap-server-port is nil. The missing entry in /etc/services will make gnutls-cli and openssl fail when port is imaps: $ gnutls-cli -p imaps imap.gmail.com Resolving 'imap.gmail.com'... Cannot resolve imap.gmail.com:imaps: service name not available for the specified socket type The workaround is simple enough; just set nnimap-server-port to 993 in ~/.gnus. >> Added an entry, and killed the two attempts to connect using >> gnutls-cli (they hung, don't know why, as the commands seem to work >> from a terminal) so that it fell back to using openssl s_client, and >> then I got in. > > Huh. No idea what's going on here. Anyways, it works with openssl, so for now I'll just remove the gnutls-cli entries from tls-program. >> Haven't got around to testing much yet. The one thing I have noticed is >> that the summary buffer displays question marks instead of the number of >> lines in the messages. > > So they do. That should be easy to fix -- I think I can just ask for > the number of lines... This seems to work now. Thanks! -- Knut Anders