From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85284 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: Sun, 16 Nov 2014 11:36:50 +0800 Message-ID: <87vbmf3jfx.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> <87vbmlm7yq.fsf@ericabrahamsen.net> <87oasc5csk.fsf@uwo.ca> <87r3x8q71r.fsf@ericabrahamsen.net> <87fvdkyn62.fsf@uwo.ca> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1416108737 14075 80.91.229.3 (16 Nov 2014 03:32:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Nov 2014 03:32:17 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33528@lists.math.uh.edu Sun Nov 16 04:32:10 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 1XpqZM-0001mV-GB for ding-account@gmane.org; Sun, 16 Nov 2014 04:32:08 +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 1XpqZ8-0004EV-Hi; Sat, 15 Nov 2014 21:31:54 -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 1XpqZ6-0004EH-Mv for ding@lists.math.uh.edu; Sat, 15 Nov 2014 21:31:52 -0600 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 1XpqZ5-0005bO-Rn for ding@lists.math.uh.edu; Sat, 15 Nov 2014 21:31:52 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1XpqZ4-0002y4-GK for ding@gnus.org; Sun, 16 Nov 2014 04:31:50 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XpqYz-0001g8-Tx for ding@gnus.org; Sun, 16 Nov 2014 04:31:45 +0100 Original-Received: from 221.218.160.248 ([221.218.160.248]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 16 Nov 2014 04:31:45 +0100 Original-Received: from eric by 221.218.160.248 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 16 Nov 2014 04:31:45 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 99 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 221.218.160.248 User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:zCJTsrHcdpW0RQAU/jzF0fd9u9w= X-Spam-Score: 0.3 (/) X-Spam-Report: SpamAssassin (3.3.1 2010-03-16) analysis follows Bayesian score: 0.0000 Ham tokens: 0.000-2387--18927h-0s--0d--H*u:Emacs, 0.000-376--2980h-0s--0d--H*u:Gnus, 0.000-376--2980h-0s--0d--H*UA:Gnus, 0.000-360--2850h-0s--0d--H*u:linux, 0.000-360--2850h-0s--0d--H*UA:linux Spam tokens: 0.991-26765--1411h-107201s--0d--HTo:D*gnus.org, 0.991-27770--1464h-111227s--0d--HX-Spam-Relays-External:quimby.gnus.org, 0.991-27770--1464h-111227s--0d--H*RU:quimby.gnus.org, 0.989-27486--1749h-111232s--0d--HX-Spam-Relays-Internal:quimby.gnus.org, 0.989-27486--1749h-111232s--0d--H*RT:80.91.231.51 Autolearn status: no -1.0 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [80.91.229.3 listed in list.dnswl.org] -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 1.2 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 2.0 FSL_HELO_BARE_IP_2 FSL_HELO_BARE_IP_2 List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:85284 Archived-At: --=-=-= Content-Type: text/plain Dan Christensen writes: > Eric Abrahamsen writes: > >> I've attached patches for both the backlog edit and the nnmairix edit. > > ... > >> (defun gnus-backlog-enter-article (group number buffer) >> (when (and (numberp number) >> - (not (string-match "^nnvirtual" group))) >> + (not (gnus-virtual-group-p group))) > > I guess gnus-backlog-request-article should have a similar change made? > > Dan Good point! New patches... --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Mark-nnmairix-as-a-virtual-backend.patch >From 4444ddab84c4bde3ad6db3ae03a937816e3a0523 Mon Sep 17 00:00:00 2001 From: Eric Abrahamsen Date: Thu, 13 Nov 2014 08:15:35 +0800 Subject: [PATCH 1/2] Mark nnmairix as a virtual backend * lisp/nnmairix.el: Add 'virtual to call to `gnus-declare-backend' --- lisp/nnmairix.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.1.3 --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0002-Disable-backlog-altogether-for-virtual-groups.patch >From 199e227482b78171d88820fb22008cadd01641ac Mon Sep 17 00:00:00 2001 From: Eric Abrahamsen Date: Sun, 16 Nov 2014 11:28:35 +0800 Subject: [PATCH 2/2] Disable backlog altogether for virtual groups * lisp/gnus-bcklg.el (gnus-backlog-enter-article gnus-backlog-request-article): No articles from virtual groups should be added to the backlog. --- lisp/gnus-bcklg.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/gnus-bcklg.el b/lisp/gnus-bcklg.el index db80800..f3b9a66 100644 --- a/lisp/gnus-bcklg.el +++ b/lisp/gnus-bcklg.el @@ -61,7 +61,7 @@ (defun gnus-backlog-enter-article (group number buffer) (when (and (numberp number) - (not (string-match "^nnvirtual" group))) + (not (gnus-virtual-group-p group))) (gnus-backlog-setup) (let ((ident (intern (concat group ":" (int-to-string number)) gnus-backlog-hashtb)) @@ -126,7 +126,7 @@ (defun gnus-backlog-request-article (group number &optional buffer) (when (and (numberp number) - (not (string-match "^nnvirtual" group))) + (not (gnus-virtual-group-p group))) (gnus-backlog-setup) (let ((ident (intern (concat group ":" (int-to-string number)) gnus-backlog-hashtb)) -- 2.1.3 --=-=-=--