From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/55854 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: (gnus-data-list nil) does not give valid data sometimes Date: Thu, 08 Jan 2004 17:51:32 -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: <4nr7yagikr.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 1073602381 19046 80.91.224.253 (8 Jan 2004 22:53:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Jan 2004 22:53:01 +0000 (UTC) Original-X-From: ding-owner+M4394@lists.math.uh.edu Thu Jan 08 23:52:55 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 1Aej1J-00070G-00 for ; Thu, 08 Jan 2004 23:52:53 +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 1Aej1E-00085E-00; Thu, 08 Jan 2004 16:52:48 -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 1Aej1A-000859-00 for ding@lists.math.uh.edu; Thu, 08 Jan 2004 16:52:44 -0600 Original-Received: from clifford.bwh.harvard.edu (clifford.bwh.harvard.edu [134.174.9.41]) by justine.libertine.org (Postfix) with ESMTP id 6680C3A0034 for ; Thu, 8 Jan 2004 16:52:43 -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 i08MpcW08212 for ; Thu, 8 Jan 2004 17:51:38 -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 i08MpXuB001956 for ; Thu, 8 Jan 2004 17:51:33 -0500 (EST) Original-Received: (from tzz@localhost) by collins.bwh.harvard.edu (8.12.9+Sun/8.12.9/Submit) id i08MpWRc001953; Thu, 8 Jan 2004 17:51:32 -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 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:55854 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:55854 The function that fails is: (defun spam-fetch-field-fast (article field) "Fetch a field quickly, using the internal gnus-data-list function" (when (numberp article) (gnus-get-newsgroup-headers) (let* ((header (assoc article (gnus-data-list nil))) (data-header (if header (gnus-data-header header) nil))) (if (arrayp data-header) (cond ((equal field 'from) (mail-header-from data-header)) ((equal field 'message-id) (mail-header-message-id data-header)) ((equal field 'subject) (mail-header-subject data-header)) ((equal field 'references) (mail-header-references data-header)) ((equal field 'date) (mail-header-date data-header)) ((equal field 'xref) (mail-header-xref data-header)) ((equal field 'extra) (mail-header-extra data-header)) (t nil)) (gnus-error 5 "Article %d has a nil data header" article))))) 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. Thanks Ted