From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/64681 Path: news.gmane.org!not-for-mail From: Greg Troxel Newsgroups: gmane.emacs.gnus.general Subject: Re: sluggish IMAP updating? Date: Thu, 24 May 2007 11:13:00 -0400 Message-ID: References: <87wsyyzb9p.fsf@mocca.josefsson.org> <87veeixo5j.fsf@mocca.josefsson.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1180019602 6982 80.91.229.12 (24 May 2007 15:13:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 24 May 2007 15:13:22 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M13192@lists.math.uh.edu Thu May 24 17:13:18 2007 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.50) id 1HrF07-0008PQ-LA for ding-account@gmane.org; Thu, 24 May 2007 17:13:15 +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 1HrF02-0003rr-Pn; Thu, 24 May 2007 10:13:10 -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 1HrF00-0003rV-R7 for ding@lists.math.uh.edu; Thu, 24 May 2007 10:13:08 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1HrEzy-0004kA-C6 for ding@lists.math.uh.edu; Thu, 24 May 2007 10:13:08 -0500 Original-Received: from linuxpal.mit.edu ([18.62.1.14]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1HrEzw-0003So-00 for ; Thu, 24 May 2007 17:13:04 +0200 Original-Received: by linuxpal.mit.edu (Postfix, from userid 9545) id 921B216DEC; Thu, 24 May 2007 11:13:00 -0400 (EDT) X-Hashcash: 1:20:070524:ding@gnus.org::sEMsBcnmjxmPRDDy:00000wVG In-Reply-To: <87veeixo5j.fsf@mocca.josefsson.org> (Simon Josefsson's message of "Thu, 24 May 2007 17:00:08 +0200") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/21.4 (berkeley-unix) X-Spam-Score: -2.4 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:64681 Archived-At: Simon Josefsson writes: >> The word from dovecot is that STATUS on a selected mailbox is SHOULD NOT >> to start with, and MUST NOT to check for new mail. See 6.3.10 of >> RFC3501. >> >> http://dovecot.org/pipermail/dovecot/2007-May/023045.html >> >> Plus, doing lots of STATUS commands seems to be disfavored but I don't >> understand IMAP well enough to understand. > > nnimap was written when RFC 2060 was current, and we haven't really > updated it for RFC 3501. I suspect the notes in 6.3.10 was added as a > result of nnimap and other implementations behaviour, but the problem is > that I don't know of a good way to implement this in Gnus without using > STATUS (and, alas, I wouldn't have time to implement anything even if I > had some ideas). Note that I cannot see that RFC 3501 allows servers to > respond with incorrect data in this situation, which dovecot appears to > be doing. The dovecot people talk about 'synchronizing the mailbox', and apparently they are in an implementation bind because they aren't allowed to clear recent flags. I see your point, but the RFC says "MUST NOT" use STATUS on a selected mailbox to check for new mail. I think one is supposed to use SEARCH RECENT, but I really just barely understand imap. > This will slow things down for other users... Are you using the latest > Dovecot version? Maybe we can improve the manual. Yes, I'm running 1.0.0. > I don't have a strong opinion on what the default should be. If others > think it is safer to let it be t by default, by all means change it. Someone else was having trouble with courier imap, so this seems not to just be a dovecot issue. I'd favor safety over efficiency. for me 'g' takes a while and does 100 STATUS checks, so an unselect hardly seems like a big deal.