Gnus development mailing list
 help / color / mirror / Atom feed
* nnimap: Server buffer vs secondary-select-methods
@ 2005-01-30 16:45 Mark Plaksin
  2005-02-04 19:50 ` David Abrahams
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Plaksin @ 2005-01-30 16:45 UTC (permalink / raw)


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.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-02-04 21:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-30 16:45 nnimap: Server buffer vs secondary-select-methods Mark Plaksin
2005-02-04 19:50 ` David Abrahams
2005-02-04 21:44   ` Mark Plaksin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).