Post by Eric AbrahamsenPost by Dan ChristensenI 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))