From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/50612 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: spam.el is a bit aggressive loading/saving spam-stat data Date: Thu, 06 Mar 2003 10:39:37 -0500 Organization: =?koi8-r?q?=F4=C5=CF=C4=CF=D2=20=FA=CC=C1=D4=C1=CE=CF=D7?= @ Cienfuegos Sender: owner-ding@hpc.uh.edu Message-ID: <4nisuw5wsm.fsf@lockgroove.bwh.harvard.edu> References: <4nd6ll3bus.fsf@lockgroove.bwh.harvard.edu> <4nk7ft1hqj.fsf@lockgroove.bwh.harvard.edu> <874r6xtccq.fsf@emacswiki.org> <4nisv91h2t.fsf@chubby.bwh.harvard.edu> <4nel5u3frk.fsf@chubby.bwh.harvard.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1046965295 30238 80.91.224.249 (6 Mar 2003 15:41:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 6 Mar 2003 15:41:35 +0000 (UTC) Original-X-From: owner-ding@hpc.uh.edu Thu Mar 06 16:41:34 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18qxTW-0007la-00 for ; Thu, 06 Mar 2003 16:40:02 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18qxTQ-0002Si-00; Thu, 06 Mar 2003 09:39:56 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 06 Mar 2003 09:40:57 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id JAA06555 for ; Thu, 6 Mar 2003 09:40:44 -0600 (CST) Original-Received: (qmail 9409 invoked by alias); 6 Mar 2003 15:39:39 -0000 Original-Received: (qmail 9404 invoked from network); 6 Mar 2003 15:39:39 -0000 Original-Received: from clifford.bwh.harvard.edu (134.174.9.41) by 66.230.238.6 with SMTP; 6 Mar 2003 15:39:39 -0000 Original-Received: from lockgroove.bwh.harvard.edu (lockgroove [134.174.9.133]) by clifford.bwh.harvard.edu (8.10.2+Sun/8.11.0) with ESMTP id h26Fdbj28281 for ; Thu, 6 Mar 2003 10:39:37 -0500 (EST) Original-Received: (from tzz@localhost) by lockgroove.bwh.harvard.edu (8.11.6+Sun/8.11.0) id h26Fdbc19751; Thu, 6 Mar 2003 10:39:37 -0500 (EST) Original-To: ding@gnus.org 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-Followup-To: ding@gnus.org In-Reply-To: (Niklas Morberg's message of "Thu, 06 Mar 2003 14:22:44 +0100") User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 (usg-unix-v) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:50612 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:50612 On Thu, 06 Mar 2003, niklas.morberg@axis.com wrote: > I just noticed that the spam-stat data is loaded when moving > messages, which seems a bit unnecessary. The reason is that > gnus-summary-move-article makes a call to > gnus-group-get-new-news-this-group which in turn loads the > spam-stat file. > > Would it be possible to get rid of this as well? I added a gnus-get-top-new-news-hook which is NOT invoked by gnus-group-get-new-news-this-group to get around this, only by gnus-get-new-news. I also moved the spam.el stat loading hook to the gnus-get-top-new-news-hook. If anyone has a problem with that new hook, let me know (but seriously, can Gnus ever have enough hooks? :) Note I left spam-setup-widening in the gnus-get-new-news-hook intentionally. Thanks Ted