From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/55877 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: bug/feature?: gnus-data-list is not ready in gnus-summary-prepare-hook (was: (gnus-data-list nil) does not give valid data sometimes) Date: Fri, 09 Jan 2004 13:43:42 -0500 Organization: =?koi8-r?q?=F4=C5=CF=C4=CF=D2=20=FA=CC=C1=D4=C1=CE=CF=D7?= @ Cienfuegos Sender: ding-owner@lists.math.uh.edu Message-ID: <4nk741otcx.fsf_-_@collins.bwh.harvard.edu> References: <4nr7yagikr.fsf@collins.bwh.harvard.edu> <4ny8silyz4.fsf@collins.bwh.harvard.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073674443 25701 80.91.224.253 (9 Jan 2004 18:54:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Jan 2004 18:54:03 +0000 (UTC) Original-X-From: ding-owner+M4417@lists.math.uh.edu Fri Jan 09 19:53:58 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Af1dS-00062M-00 for ; Fri, 09 Jan 2004 19:45:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1Af1d3-0003xv-00; Fri, 09 Jan 2004 12:45:05 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1Af1cu-0003xn-00 for ding@lists.math.uh.edu; Fri, 09 Jan 2004 12:44:56 -0600 Original-Received: from clifford.bwh.harvard.edu (clifford.bwh.harvard.edu [134.174.9.41]) by justine.libertine.org (Postfix) with ESMTP id 1191F3A006F for ; Fri, 9 Jan 2004 12:44:56 -0600 (CST) Original-Received: from collins.bwh.harvard.edu (collins [134.174.9.80]) by clifford.bwh.harvard.edu (8.10.2+Sun/8.11.0) with ESMTP id i09IhlW07648 for ; Fri, 9 Jan 2004 13:43:47 -0500 (EST) Original-Received: from collins.bwh.harvard.edu (localhost [127.0.0.1]) by collins.bwh.harvard.edu (8.12.9+Sun/8.11.0) with ESMTP id i09IhhuB006263 for ; Fri, 9 Jan 2004 13:43:43 -0500 (EST) Original-Received: (from tzz@localhost) by collins.bwh.harvard.edu (8.12.9+Sun/8.12.9/Submit) id i09IhgSV006260; Fri, 9 Jan 2004 13:43:42 -0500 (EST) Original-To: Ding Mailing List 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 Mailing List In-Reply-To: <4ny8silyz4.fsf@collins.bwh.harvard.edu> (Ted Zlatanov's message of "Thu, 08 Jan 2004 19:58:23 -0500") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (usg-unix-v) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:55877 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:55877 On Thu, 08 Jan 2004, tzz@lifelogs.com wrote: On Thu, 08 Jan 2004, tzz@lifelogs.com wrote: > >> When entering a group the first time, lots of errors are generated >> above because data-header is nil. After C-g, the next time the >> group is entered everything is fine. BUT the next time (3rd time) >> the group is entered, the errors happen again - and so on, this can >> be repeated forever. I don't use the agent - I'm not sure what's >> wrong. >> >> This, by the way, is called by spam-insert-fake-headers which is >> called by spam-find-spam; spam-find-spam is hooked on >> gnus-summary-prepare-hook. > > I only see this problem on nntp.perl.org. It does not happen on any > of my other news servers. It may be a NNTP server issue or a Gnus > bug. Hmm, now I got the error in other news servers. I think the gnus-data-list function is not ready to give me valid data in the gnus-summary-prepare hook. Can anyone tell me how I can circumvent this? The goal is to gather overview data for the articles in the group, so I can detect if they are spam. I used to retrieve the whole article in a temporary buffer and run spam detection there, but that is overkill for most spam-check-* functions. So I'm trying (in spam-find-spam) to get the overview headers for the unseen/unread articles in the group. Thanks Ted