From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78212 Path: news.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.gnus.general Subject: Re: Dovecot and capabilities Date: Tue, 29 Mar 2011 16:23:01 -0400 Message-ID: References: <87ipvcymzk.fsf@maru.md5i.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1301430211 13551 80.91.229.12 (29 Mar 2011 20:23:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 Mar 2011 20:23:31 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M26523@lists.math.uh.edu Tue Mar 29 22:23:25 2011 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 1Q4fRj-00050F-Oj for ding-account@gmane.org; Tue, 29 Mar 2011 22:23:24 +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 1Q4fRd-0005bn-0E; Tue, 29 Mar 2011 15:23:17 -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 1Q4fRb-0005be-Sm for ding@lists.math.uh.edu; Tue, 29 Mar 2011 15:23:15 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Q4fRX-0001V2-BE for ding@lists.math.uh.edu; Tue, 29 Mar 2011 15:23:15 -0500 Original-Received: from euclid.red.cert.org ([192.88.209.48]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Q4fRV-0002eV-Tg for ding@gnus.org; Tue, 29 Mar 2011 22:23:10 +0200 Original-Received: from bucknell.indigo.cert.org (bucknell.indigo.cert.org [10.60.10.121]) by euclid.red.cert.org (8.13.8/8.13.8) with ESMTP id p2TKKXcg022659 for ; Tue, 29 Mar 2011 16:20:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cert.org; s=jthatj15xw2j; t=1301430033; bh=nUdXR8KVoUFdJxYtVHVjXlJo7NewwsnPzw7f+9+SMxk=; h=From:To:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type:Sender:Reply-To:Cc; b=m4PeoolFpAr/7eWK2HYB1mlshVtR51+RMvv9Ki9zZLjIRTySK0kYU35VwbQzEyqq7 yzqJJRXtUFcU83MvSznqmj5chIbyXfeLp0scehTM9rLr7W29ANn8rKomngrkkgaub4 aNBVH8rCpj4JqaSL9s5KB1JxMR7nZ39Njdbdga78= Original-Received: from waterbuck.yellow.cert.org (waterbuck.yellow.cert.org [10.20.128.84]) by bucknell.indigo.cert.org (8.13.8/8.13.8/2.79) with ESMTP id p2TKN1iY011678 for ; Tue, 29 Mar 2011 16:23:01 -0400 Original-Received: (from mwd@localhost) by waterbuck.yellow.cert.org (8.13.8/8.13.8/Submit/1.6) id p2TKN1XZ011812; Tue, 29 Mar 2011 16:23:01 -0400 X-Authentication-Warning: waterbuck.yellow.cert.org: mwd set sender to mwd@cert.org using -f In-Reply-To: (Lars Magne Ingebrigtsen's message of "Tue, 29 Mar 2011 20:18:37 +0200") User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) X-Spam-Score: -2.0 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:78212 Archived-At: Lars Magne Ingebrigtsen writes: > Michael Welsh Duggan writes: > >> Upon login on Dovecot, an updated set of capabilities may be >> advertised. I was able to account for that using the included patch. > > Thanks; applied. > >> A perhaps-better method might be to re-run CAPABILITY after logging >> in. > > I don't see why -- if the LOGIN responds with a CAPABILITY list, then we > should use it. If not, then the capabilities probably haven't changed. > > Not issuing another CAPABILITY saves one round trip. :-) Only because I don't see any way to guarantee that a server will return a capability list in response to LOGIN, whereas we know it will return one in response to CAPABILITY. My solution will work in Dovecot 2, but I don't know if it will work anywhere else. Now, we could certainly use the capability response if it is there, and re-request capabilities if it is not. Either way, my problem is solved with this patch, so it is up to you. -- Michael Welsh Duggan (mwd@cert.org)