From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85188 Path: news.gmane.org!not-for-mail From: Dan Christensen Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus uses a cache? And how it affects mairix searches... Date: Tue, 28 Oct 2014 10:32:24 -0400 Message-ID: <87k33kuux3.fsf@uwo.ca> References: <87oaus4brr.fsf@skimble.plus.com> <8761gyvr67.fsf_-_@uwo.ca> <87y4saicdd.fsf@uwo.ca> <87vbn9h55q.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1414506858 32636 80.91.229.3 (28 Oct 2014 14:34:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Oct 2014 14:34:18 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33432@lists.math.uh.edu Tue Oct 28 15:34:11 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 1Xj7qR-0001XT-J5 for ding-account@gmane.org; Tue, 28 Oct 2014 15:33:59 +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 1Xj7pf-0007yd-IH; Tue, 28 Oct 2014 09:33:11 -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 1Xj7pc-0007yI-6V for ding@lists.math.uh.edu; Tue, 28 Oct 2014 09:33:08 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1Xj7pa-0006zy-3a for ding@lists.math.uh.edu; Tue, 28 Oct 2014 09:33:07 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1Xj7pY-000382-3b for ding@gnus.org; Tue, 28 Oct 2014 15:33:04 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xj7pI-0000F1-AO for ding@gnus.org; Tue, 28 Oct 2014 15:32:48 +0100 Original-Received: from cpe0023bee5dd21-cm0023bee5dd1e.cpe.net.cable.rogers.com ([99.248.180.250]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Oct 2014 15:32:48 +0100 Original-Received: from jdc by cpe0023bee5dd21-cm0023bee5dd1e.cpe.net.cable.rogers.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Oct 2014 15:32:48 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 78 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cpe0023bee5dd21-cm0023bee5dd1e.cpe.net.cable.rogers.com User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/23.4 (gnu/linux) Mail-Copies-To: never Cancel-Lock: sha1:rNY5IF4nB48OOS3YNzf/+jKyOuA= X-Spam-Score: -3.5 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:85188 Archived-At: Eric Abrahamsen writes: > Dan Christensen writes: > >> I finally figured this out. Setting gnus-keep-backlog to nil solved >> the problem. It turns out that by default, gnus caches the most recent >> 20 articles you have viewed, rather than contacting the server again. >> This is true even if you exit and reenter a summary buffer. >> >> Maybe nnmairix should remove articles from this cache when it creates >> a search folder? Or bind this variable to nil in nnmairix groups? >> >> Dan > > Can you or someone else using nnmairix tell me if calling > (gnus-virtual-group-p "nnmairix:your group name") returns t? It's true > for nnvirtual and nnir groups, so that function might make a good guard > inside `gnus-backlog-enter-article'. > > Eric Unfortunately, that doesn't work: (gnus-virtual-group-p "nnmairix+mairixserver:nnmairixsearch") nil So maybe a combination of checks is needed. Or just check if the backend is in a banned list which includes nnmairix, nnir, etc. This is what the registry does in gnus.el: ;; The Gnus registry's ignored groups (gnus-define-group-parameter registry-ignore :type list :function-document "Whether this group should be ignored by the registry." :variable gnus-registry-ignored-groups :variable-default (mapcar (lambda (g) (list g t)) '("delayed$" "drafts$" "queue$" "INBOX$" "^nnmairix:" "^nnir:" "archive")) ... Or maybe gnus-virtual-group-p should be changed to declare that nnmairix groups are virtual? This could be accomplished by changing gnus-valid-select-methods. 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). I don't know enough about the internals to know the best way to proceed. Dan gnus-valid-select-methods is a variable defined in `gnus.el'. Value: (("nntp" post address prompt-address physical-address cloud) ("nnspool" post address) ("nnvirtual" post-mail virtual prompt-address) ("nnmbox" mail respool address) ("nnml" post-mail respool address) ("nnmh" mail respool address) ("nndir" post-mail prompt-address physical-address) ("nneething" none address prompt-address physical-address) ("nndoc" none address prompt-address) ("nnbabyl" mail address respool) ("nndraft" post-mail) ("nnfolder" mail respool address) ("nngateway" post-mail address prompt-address physical-address) ("nnweb" none) ("nnrss" none global) ("nnagent" post-mail) ("nnimap" post-mail address prompt-address physical-address respool server-marks cloud) ("nnmaildir" mail respool address server-marks) ("nnnil" none) ("nnmairix" mail address) ("nnir" mail virtual))