From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/70900 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 19:49:21 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1284745791 21394 80.91.229.12 (17 Sep 2010 17:49:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Sep 2010 17:49:51 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M19273@lists.math.uh.edu Fri Sep 17 19:49:50 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 1Owf4G-0001wF-AV for ding-account@gmane.org; Fri, 17 Sep 2010 19:49:48 +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 1Owf46-0000jo-UK; Fri, 17 Sep 2010 12:49:38 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Owf44-0000ja-Vt for ding@lists.math.uh.edu; Fri, 17 Sep 2010 12:49:36 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Owf40-0002hc-Mj for ding@lists.math.uh.edu; Fri, 17 Sep 2010 12:49:36 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1Owf40-0003dS-00 for ; Fri, 17 Sep 2010 19:49:32 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Owf3z-0001lH-9L for ding@gnus.org; Fri, 17 Sep 2010 19:49:31 +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 19:49:31 +0200 Original-Received: from kahatlen by gw2.mysql.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Sep 2010 19:49:31 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 76 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:b+z8Wagr7x5MhgiA5Lc80kfZYXc= X-Spam-Score: -1.0 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:70900 Archived-At: --=-=-= Content-Type: text/plain Knut Anders Hatlen writes: > Lars Magne Ingebrigtsen writes: > >> Lars Magne Ingebrigtsen writes: >> >>> I'll be releasing the new nnimap later tonight, so be prepared for some >>> breakage. :-) >> >> I pushed it out now. > > Great! I gave it a go. My first impressions: > > 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? > > 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). 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. > > 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. And a third configuration I have, talking to an IMAP server that doesn't identify itself (I *think* it's Zimbra) fails in nnimap-get-groups because the second argument in (string-match "noselect" (caadr line)) is nil. This happens because the LIST response from the server doesn't have any name attributes. Example: 7 LIST "" "*"^M * LIST () "/" "apache.db-pmc" * LIST () "/" "apache.derby-commits" * LIST () "/" "apache.derby-dev" (...) * LIST () "/" "Trash" 7 OK LIST completed Simple fix that makes it skip looking for the noselect attribute if there are no attributes is attached. More to come, hopefully, since I still cannot actually see any messages in the groups... -- Knut Anders --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=nil.diff diff --git a/lisp/nnimap.el b/lisp/nnimap.el index 548b6ec..3caa58e 100644 --- a/lisp/nnimap.el +++ b/lisp/nnimap.el @@ -416,7 +416,8 @@ not done by default on servers that doesn't support that command.") (when (car result) (dolist (line (cdr result)) (when (and (equal (car line) "LIST") - (not (string-match "noselect" (caadr line)))) + (not (and (caadr line) + (string-match "noselect" (caadr line))))) (push (car (last line)) groups))) (nreverse groups)))) --=-=-=--