From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67873 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.gnus.general Subject: Re: How to open a summary buffer reliable? Date: Thu, 11 Dec 2008 19:30:41 +0100 Message-ID: References: <87k5a7g7vv.fsf@thinkpad.tsdh.de> <871vwf3dh8.fsf@randomsample.de> <87prjzyvuq.fsf@thinkpad.tsdh.de> <87myf28y3q.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1229020278 27118 80.91.229.12 (11 Dec 2008 18:31:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Dec 2008 18:31:18 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M16319@lists.math.uh.edu Thu Dec 11 19:32:22 2008 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 1LAqKX-0006Ku-6f for ding-account@gmane.org; Thu, 11 Dec 2008 19:32:09 +0100 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 1LAqJD-00031e-OU; Thu, 11 Dec 2008 12:30:47 -0600 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 1LAqJC-00031U-PM for ding@lists.math.uh.edu; Thu, 11 Dec 2008 12:30:46 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1LAqJ9-0005XW-Mu for ding@lists.math.uh.edu; Thu, 11 Dec 2008 12:30:46 -0600 Original-Received: from m61s02.vlinux.de ([83.151.21.164]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1LAqJM-0001nS-00 for ; Thu, 11 Dec 2008 19:30:56 +0100 Original-Received: from kafka.physik3.gwdg.de ([134.76.92.48] helo=kafka) by m61s02.vlinux.de with esmtpsa (TLS-1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.63) (envelope-from ) id 1LAqJA-0007TO-2S for ding@gnus.org; Thu, 11 Dec 2008 19:30:44 +0100 Mail-Copies-To: never Mail-Followup-To: ding@gnus.org In-Reply-To: <87myf28y3q.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Thu, 11 Dec 2008 17:39:53 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67873 Archived-At: Tassilo Horn writes: >>> If you rescan the group before entering, Gnus should notice that the >>> article got deleted. You can do this by using gnus-activate-group >>> with `scan' being non-nil. >> >> Hey, that seems to work! > > I was a bit too quick. It does work for nnimap groups, but I get an > error for nnml groups. [...] > Doing things manually after (gnus-activate-group "nnml+Foo:bar" t) a > `C-u 1 RET' won't enter that group, too. So I guess the error comes > from the fact that the group's summary wasn't created. > So is that a bug in nnml or is it correct that only nnimap supports it? I guess the beloved gnus-fixup-nnimap-unread-after-getting-new-news makes this work with nnimap, but not with nnml. I don't know how other back ends behave in this regard. > Ideally I'd love to see that work for all backends supporting deletion. This is all related to Gnus not knowing the actual article numbers. We discussed how this could be solved in August, based on Vitaly Mayatskikh's patches. Unfortunately, I didn't have time since then to work on this... nnml is tricky since it tries to avoid rebuilding the active information, this is why it usually recognizes this situation only after restarting Gnus. You can force rebuilding the active file by using nnml-generate-nov-databases-directory (which can be costly for large groups). This function expects a directory, not the group name, so you would have to extract that first. And then you would have to put this information in gnus-active-hashtb, maybe also in the cache via gnus-cache-possibly-update-active (maybe they're the same, I don't really know). Looks like work; maybe someone else knows how to do this easier? -David