Gnus development mailing list
 help / color / mirror / Atom feed
From: Dan Christensen <jdc@uwo.ca>
To: ding@gnus.org
Subject: Re: gnus uses a cache?  And how it affects mairix searches...
Date: Tue, 28 Oct 2014 10:32:24 -0400	[thread overview]
Message-ID: <87k33kuux3.fsf@uwo.ca> (raw)
In-Reply-To: <87vbn9h55q.fsf@ericabrahamsen.net>

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> Dan Christensen <jdc@uwo.ca> 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))




  reply	other threads:[~2014-10-28 14:32 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-06 22:36 gnus uses a cache? Sharon Kimble
2014-09-07 11:40 ` Adam Sjøgren
2014-09-07 14:22 ` James Cloos
2014-09-08  1:26   ` gnus uses a cache? And how it affects mairix searches Dan Christensen
2014-10-20 22:51     ` Dan Christensen
2014-10-20 23:57       ` Eric Abrahamsen
2014-10-22  7:47         ` Eric Abrahamsen
2014-10-22  8:30           ` Eric Abrahamsen
2014-10-23  6:59             ` Alan Schmitt
2014-10-24 15:13       ` Eric Abrahamsen
2014-10-28 14:32         ` Dan Christensen [this message]
2014-10-28 17:52           ` Andreas Schwab
2014-11-12  1:45             ` Eric Abrahamsen
2014-11-12  3:08               ` Eric Abrahamsen
2014-11-12 21:28                 ` Dan Christensen
2014-11-13  0:26                   ` Eric Abrahamsen
2014-11-16  1:00                     ` Dan Christensen
2014-11-16  3:36                       ` Eric Abrahamsen
2015-01-27  5:03                         ` Lars Ingebrigtsen
2014-09-24 15:35 ` gnus uses a cache? Ted Zlatanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k33kuux3.fsf@uwo.ca \
    --to=jdc@uwo.ca \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).