From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/50468 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: Sat, 01 Mar 2003 10:08:00 -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: 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 1046530588 4818 80.91.224.249 (1 Mar 2003 14:56:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 1 Mar 2003 14:56:28 +0000 (UTC) Cc: ding@gnus.org 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 18p8Pb-0001FZ-00 for ; Sat, 01 Mar 2003 15:56:27 +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 18p8PW-0002Hl-00; Sat, 01 Mar 2003 08:56:22 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 01 Mar 2003 08:57:21 -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 IAA22279 for ; Sat, 1 Mar 2003 08:57:09 -0600 (CST) Original-Received: (qmail 1998 invoked by alias); 1 Mar 2003 14:56:05 -0000 Original-Received: (qmail 1993 invoked from network); 1 Mar 2003 14:56:05 -0000 Original-Received: from ns1.beld.net (208.229.215.81) by 66.230.238.6 with SMTP; 1 Mar 2003 14:56:05 -0000 Original-Received: from heechee.beld.net (unknown [24.233.64.63]) by ns1.beld.net (Postfix) with ESMTP id B671D3BD2E; Sat, 1 Mar 2003 09:56:00 -0500 (EST) Original-To: David Z Maze 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: David Z Maze , ding@gnus.org In-Reply-To: (David Z Maze's message of "Sat, 01 Mar 2003 08:26:58 -0500") User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 (gnu/linux) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:50468 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:50468 On Sat, 01 Mar 2003, dmaze@MIT.EDU wrote: > Well, the good news: Gnus no longer takes multiple seconds per > message to read mail. :-) The bad news, part 1, is that this only > works if spam-use-stat is defined before spam.el is loaded. (So if > you (require 'spam) at the top of your .gnus, say, you lose.) This > patch fixes that: I added the patch, but modified it for style (I prefer when to if for single logicals), I hope you don't mind :) > Even with that, spam-stat-load doesn't seem to get called when Gnus > is loaded. What in gnus-1 causes incoming mail to be read on > startup? The only call to gnus-group-get-new-news there is > protected by a call to gnus-alive-p, and the code seems to leap from > reading in all of the prerequisite files to building the group > buffer. Does something in the startup sequence actually run > gnus-get-new-news-hook? I added (add-hook 'gnus-startup-hook 'spam-maybe-spam-stat-load)) to the list of hook modifications, since loading the stats twice shouldn't hurt and it seems like the safest way to force the loading. Let me know if it works. I don't know why gnus-1 is not calling the stats loading, sorry. Ted