From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/64678 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 08:11:13 -0400 Message-ID: References: <87wsyyzb9p.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 1180008706 24920 80.91.229.12 (24 May 2007 12:11:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 24 May 2007 12:11:46 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M13189@lists.math.uh.edu Thu May 24 14:11:41 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 1HrCAL-00064e-MK for ding-account@gmane.org; Thu, 24 May 2007 14:11:37 +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 1HrCA5-00030J-9h; Thu, 24 May 2007 07:11:21 -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 1HrCA3-000302-HN for ding@lists.math.uh.edu; Thu, 24 May 2007 07:11:19 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1HrCA1-0003Pe-Fm for ding@lists.math.uh.edu; Thu, 24 May 2007 07:11:19 -0500 Original-Received: from linuxpal.mit.edu ([18.62.1.14]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1HrC9z-0000w7-00 for ; Thu, 24 May 2007 14:11:15 +0200 Original-Received: by linuxpal.mit.edu (Postfix, from userid 9545) id 7A99616DEA; Thu, 24 May 2007 08:11:13 -0400 (EDT) X-Hashcash: 1:20:070524:ding@gnus.org::HgIzmSVsHSc1MbOZ:00007TQW In-Reply-To: <87wsyyzb9p.fsf@mocca.josefsson.org> (Simon Josefsson's message of "Thu, 24 May 2007 13:55:30 +0200") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/21.4 (berkeley-unix) X-Spam-Score: -2.1 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:64678 Archived-At: Simon Josefsson writes: > Greg Troxel writes: > >> [gnus/dovecot doesn't notice new messages right away] > > Does toggling nnimap-need-unselect-to-notice-new-mail help? Yes, that seems to fix the problem. From *imap-log*, I can see that STATUS was returning no new messages, but after UNSELECT, it gives the right status. So, is dovecot broken, or gnus? I am not familiar enough with the IMAP spec to know if dovecot is wrong for failing to report new mail that has arrived on a selected mailbox since the selection. With ACID hat on it seems somewhat reasonable of dovecot conceptually, but not really ("SET IMAP ISOLATION LEVEL READ COMMITTED" :-). I realize this may be a deoptimization, but it would seem best for gnus to UNSELECT a mailbox when the user exits from the group and the summary buffer is destroyed. That may let the imap free resources, and seems like a good idle state.