From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/59679 Path: main.gmane.org!not-for-mail From: Mark Plaksin Newsgroups: gmane.emacs.gnus.general Subject: nnimap: Server buffer vs secondary-select-methods Date: Sun, 30 Jan 2005 11:45:59 -0500 Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1107103586 22348 80.91.229.6 (30 Jan 2005 16:46:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Jan 2005 16:46:26 +0000 (UTC) Original-X-From: ding-owner+M8219=ding+2Daccount=gmane.org@lists.math.uh.edu Sun Jan 30 17:46:18 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CvIDK-0004li-00 for ; Sun, 30 Jan 2005 17:46:18 +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 1CvIDW-0005p8-02 for ding-account@gmane.org; Sun, 30 Jan 2005 10:46:30 -0600 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1CvIDO-0005oz-00 for ding@lists.math.uh.edu; Sun, 30 Jan 2005 10:46:22 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1CvIDG-0002mt-6B for ding@lists.math.uh.edu; Sun, 30 Jan 2005 10:46:14 -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 1CvIDE-0008Pl-00 for ; Sun, 30 Jan 2005 17:46:12 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1CvID9-0003HP-JU for ding@gnus.org; Sun, 30 Jan 2005 17:46:07 +0100 Original-Received: from water.tss.usg.edu ([168.24.82.53]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 30 Jan 2005 17:46:07 +0100 Original-Received: from happy by water.tss.usg.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 30 Jan 2005 17:46:07 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 33 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: water.tss.usg.edu User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:1KVjKp0lyFQEqPWFYdMYkoG7mo8= X-MailScanner-From: ding-account@m.gmane.org Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: main.gmane.org gmane.emacs.gnus.general:59679 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:59679 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.