From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/59723 Path: main.gmane.org!not-for-mail From: David Abrahams Newsgroups: gmane.emacs.gnus.general Subject: Re: nnimap: Server buffer vs secondary-select-methods Date: Fri, 04 Feb 2005 14:50:14 -0500 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1107546851 16460 80.91.229.2 (4 Feb 2005 19:54:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 4 Feb 2005 19:54:11 +0000 (UTC) Original-X-From: ding-owner+M8264@lists.math.uh.edu Fri Feb 04 20:54:11 2005 Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by ciao.gmane.org with esmtp (Exim 4.43) id 1Cx9Wo-0004un-1L for ding-account@gmane.org; Fri, 04 Feb 2005 20:54:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1Cx9Tt-0006wx-00; Fri, 04 Feb 2005 13:51:05 -0600 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1Cx9Tm-0006wr-00 for ding@lists.math.uh.edu; Fri, 04 Feb 2005 13:50:58 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1Cx9Td-0001ve-Ab for ding@lists.math.uh.edu; Fri, 04 Feb 2005 13:50:49 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Cx9Tb-0007zr-00 for ; Fri, 04 Feb 2005 20:50:47 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Cx9Sh-0004GQ-Kf for ding@gnus.org; Fri, 04 Feb 2005 20:49:51 +0100 Original-Received: from 146-115-127-135.c3-0.smr-ubr2.sbo-smr.ma.cable.rcn.com ([146.115.127.135]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Feb 2005 20:49:51 +0100 Original-Received: from dave by 146-115-127-135.c3-0.smr-ubr2.sbo-smr.ma.cable.rcn.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Feb 2005 20:49:51 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 44 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 146-115-127-135.c3-0.smr-ubr2.sbo-smr.ma.cable.rcn.com User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:iDEYi119wQiAygLRH7tcmPkb84Y= X-Spam-Score: -4.9 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu X-MailScanner-From: ding-owner+m8264@lists.math.uh.edu X-MailScanner-To: ding-account@gmane.org Xref: main.gmane.org gmane.emacs.gnus.general:59723 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:59723 Mark Plaksin writes: > Checking nnimap groups added via the Server buffer is very slow unless you > also add them to gnus-secondary-select-methods. When groups are added via > Server, Gnus opens a new IMAP connection each time it checks them. I'm > using CVS Gnus updated today. > > For example, I added a brand-new IMAP server via the Server buffer: > (nnimap "example" > (nnimap-address "example.com") > (nnimap-server-port 993) > (nnimap-stream ssl) > (nnimap-list-pattern > ("INBOX" "Mail/*"))) > > Then I hit SPC on the new server and subscribed to a group. After that, > whenever I g in the Summary buffer, Gnus will open a new connection to > example.com to check the folder. It opens a connection every time I hit > g. > > If I add the server to gnus-secondary-select-methods, Gnus opens the > connection once the first time it checks the folder and reuses the > connection after that. > > Is there a reason for this behavior? Surely I'm missing something! > Looking at the code, before the server is in gnus-secondary-select-methods > nnimap-server-opened decides the server isn't open because this > nnoo-server-opened call says it's not: > > (nnoo-server-opened 'nnimap (or server nnimap-current-server)) > > I have always struggled to understand the difference between using the > Server buffer and using gnus-secondary-select-methods. Today I made Gnus a > zillion times (no exaggeration :) faster by finally putting my IMAP servers > into gnus-secondary-select-methods. Hmm, my imap server is my primary select method, and my Gnus could stand to get a zillion times faster. Do I have to make it a secondary select method also? -- Dave Abrahams Boost Consulting www.boost-consulting.com