From: Ted Zlatanov <tzz@lifelogs.com>
To: ding@gnus.org
Subject: Re: Gnus registry upgrade didn't import old registry
Date: Tue, 27 Sep 2011 16:25:03 -0500 [thread overview]
Message-ID: <8762kdu18w.fsf@lifelogs.com> (raw)
In-Reply-To: <87sjnizp8y.fsf@uwo.ca>
On Mon, 26 Sep 2011 22:35:25 -0400 Dan Christensen <jdc@uwo.ca> wrote:
DC> Here's my guess at the bug:
DC> In gnus-registry.el:
DC> (defun gnus-registry-fixup-registry (db)
DC> (when db
DC> (let ((old (oref db :tracked)))
DC> ...
DC> (oset db :max-hard
DC> (or gnus-registry-max-entries
DC> most-positive-fixnum))
DC> ...
DC> (oset db :max-soft
DC> (or gnus-registry-max-pruned-entries
DC> most-positive-fixnum))
DC> If the user sets gnus-registry-max-entries but not
DC> gnus-registry-max-pruned-entries, then the soft limit might be (much)
DC> higher than the hard limit. Maybe the last line should be changed to
DC> replace `most-positive-fixnum' with something like `(oget db :max-hard)'
DC> (just guessing at how to read a stored value).
I have (in set-custom-variables)
'(gnus-registry-ignored-groups (quote (("nntp" t) ("nnrss" t) ("spam" t) ("train" t) ("cron" t))))
'(gnus-registry-install t)
'(gnus-registry-max-entries 100000)
'(gnus-registry-split-strategy (quote majority))
'(gnus-registry-track-extra (quote (sender subject)))
'(gnus-registry-unfollowed-groups (quote ("train$" "delayed$" "drafts$" "queue$" "INBOX$")))
and the pruning works fine for me. Could you look at what the following
produces? This should simulate the candidates that `registry-prune'
gets:
(let* ((db gnus-registry-db)
(hs (oref db :max-hard))
(ss (oref db :max-soft)))
(oset db :max-hard 10000)
(oset db :max-soft most-positive-fixnum)
(prog1 (list (registry-prune-soft-candidates db)
(registry-prune-hard-candidates db))
(oset db :max-hard hs)
(oset db :max-soft ss)))
Thanks
Ted
next prev parent reply other threads:[~2011-09-27 21:25 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-13 14:59 Dan Christensen
2011-09-26 20:25 ` Ted Zlatanov
2011-09-26 20:37 ` Dan Christensen
2011-09-26 20:50 ` Dan Christensen
2011-09-26 22:02 ` Ted Zlatanov
2011-09-27 2:12 ` Dan Christensen
2011-09-27 2:35 ` Dan Christensen
2011-09-27 21:25 ` Ted Zlatanov [this message]
2011-09-28 2:43 ` Dan Christensen
2011-09-29 0:37 ` Ted Zlatanov
2011-09-27 10:42 ` Ted Zlatanov
2011-09-26 20:41 ` Dan Christensen
2011-09-26 21:57 ` Ted Zlatanov
2011-09-27 2:07 ` Dan Christensen
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=8762kdu18w.fsf@lifelogs.com \
--to=tzz@lifelogs.com \
--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).