From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/80072 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: Gnus registry upgrade didn't import old registry Date: Tue, 27 Sep 2011 16:25:03 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <8762kdu18w.fsf@lifelogs.com> References: <87ehzkh4j2.fsf@uwo.ca> <87litbxd7x.fsf@lifelogs.com> <87zkhr11n1.fsf@uwo.ca> <87r533111i.fsf@uwo.ca> <87zkhruflt.fsf@lifelogs.com> <87fwjizqbc.fsf@uwo.ca> <87sjnizp8y.fsf@uwo.ca> Reply-To: ding@gnus.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1317158738 30423 80.91.229.12 (27 Sep 2011 21:25:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 27 Sep 2011 21:25:38 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M28366@lists.math.uh.edu Tue Sep 27 23:25:34 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R8f9i-0005Hh-8W for ding-account@gmane.org; Tue, 27 Sep 2011 23:25:34 +0200 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 1R8f9a-00049S-2L; Tue, 27 Sep 2011 16:25:26 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1R8f9Y-00049F-52 for ding@lists.math.uh.edu; Tue, 27 Sep 2011 16:25:24 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1R8f9X-0000hC-83 for ding@lists.math.uh.edu; Tue, 27 Sep 2011 16:25:24 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1R8f9V-00031q-SF for ding@gnus.org; Tue, 27 Sep 2011 23:25:21 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R8f9V-0005Bb-5k for ding@gnus.org; Tue, 27 Sep 2011 23:25:21 +0200 Original-Received: from 38.98.147.133 ([38.98.147.133]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Sep 2011 23:25:21 +0200 Original-Received: from tzz by 38.98.147.133 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Sep 2011 23:25:21 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 49 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.133 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux) Cancel-Lock: sha1:KovSrLaxikdx/IwIzuQ9eDHoFa0= X-Spam-Score: -4.2 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:80072 Archived-At: On Mon, 26 Sep 2011 22:35:25 -0400 Dan Christensen 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