From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85271 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus uses a cache? And how it affects mairix searches... Date: Wed, 12 Nov 2014 11:08:29 +0800 Message-ID: <87vbmlm7yq.fsf@ericabrahamsen.net> References: <87oaus4brr.fsf@skimble.plus.com> <8761gyvr67.fsf_-_@uwo.ca> <87y4saicdd.fsf@uwo.ca> <87vbn9h55q.fsf@ericabrahamsen.net> <87k33kuux3.fsf@uwo.ca> <874muonktk.fsf@igel.home> <878ujhnqco.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415761453 17734 80.91.229.3 (12 Nov 2014 03:04:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Nov 2014 03:04:13 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33515@lists.math.uh.edu Wed Nov 12 04:04:06 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XoOE2-0000ID-Bs for ding-account@gmane.org; Wed, 12 Nov 2014 04:04:06 +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 1XoODc-0002ji-Tx; Tue, 11 Nov 2014 21:03:40 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1XoODb-0002jP-8l for ding@lists.math.uh.edu; Tue, 11 Nov 2014 21:03:39 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1XoODZ-0002WW-T3 for ding@lists.math.uh.edu; Tue, 11 Nov 2014 21:03:38 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1XoODX-0005x9-Tn for ding@gnus.org; Wed, 12 Nov 2014 04:03:35 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XoODV-0008UW-2Z for ding@gnus.org; Wed, 12 Nov 2014 04:03:33 +0100 Original-Received: from 123.123.17.194 ([123.123.17.194]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Nov 2014 04:03:33 +0100 Original-Received: from eric by 123.123.17.194 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Nov 2014 04:03:33 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 48 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 123.123.17.194 User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:WmAAOLXZ8iC4x1SFcX1eLO+DL/0= X-Spam-Score: -0.3 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:85271 Archived-At: Eric Abrahamsen writes: > Andreas Schwab writes: > >> Dan Christensen writes: >> >>> In gnus.el, it doesn't list nnmairix at all, but somehow when using >>> nnmairix, an entry for nnmairix gets added to this list, without the >>> virtual keyword (see below). >> >> diff --git a/lisp/nnmairix.el b/lisp/nnmairix.el >> index 0cef699..b2f74e3 100644 >> --- a/lisp/nnmairix.el >> +++ b/lisp/nnmairix.el >> @@ -417,7 +417,7 @@ Other back ends might or might not work.") >> >> (nnoo-define-basics nnmairix) >> >> -(gnus-declare-backend "nnmairix" 'mail 'address) >> +(gnus-declare-backend "nnmairix" 'mail 'address 'virtual) >> >> (deffoo nnmairix-open-server (server &optional definitions) >> ;; just set server variables >> >> Andreas. > > After look at this for a while, I do think this is the right solution -- > what do you all think? Can someone apply this change? Oh never mind, I guess I didn't look long enough. For any backend declared as virtual, `gnus-cache-possibly-enter-article' will use `nnvirtual-find-group-art' to get the real group name. That means that if a backend is declared 'virtual but isn't actually nnvirtual, the caching mechanism will use the wrong lookup function. nnir should use `nnir-article-group' nnmairix could probably do it with a little massaging of `nnmairix-determine-original-group-from-path'. What we'd really want is a properly-abstracted nnoo function that virtual backends would use to locate the real article. In the meantime, it would probably be enough to make `gnus-uncacheable-groups' match nnmairix and nnir groups. Eric