From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/51486 Path: main.gmane.org!not-for-mail From: David Z Maze Newsgroups: gmane.emacs.gnus.general Subject: Re: Fancy splitting getting headers from included text Date: Tue, 15 Apr 2003 14:12:24 -0400 Sender: ding-owner@lists.math.uh.edu Message-ID: <87ptnntyt3.fsf@cag.lcs.mit.edu> References: <843cl5i4kg.fsf@lucy.is.informatik.uni-duisburg.de> <874r51jcsv.fsf@cag.lcs.mit.edu> <87znmsygfh.fsf@cag.lcs.mit.edu> <4n3ckjbqpg.fsf@lockgroove.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 1050430340 19647 80.91.224.249 (15 Apr 2003 18:12:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 15 Apr 2003 18:12:20 +0000 (UTC) Original-X-From: ding-owner+M30@lists.math.uh.edu Tue Apr 15 20:12:19 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 195Uuo-00056b-00 for ; Tue, 15 Apr 2003 20:12:18 +0200 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 195UvC-0001Zw-00; Tue, 15 Apr 2003 13:12:42 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 195Uv5-0001Zq-00 for ding@lists.math.uh.edu; Tue, 15 Apr 2003 13:12:35 -0500 Original-Received: (qmail 17872 invoked by alias); 15 Apr 2003 18:12:34 -0000 Original-Received: (qmail 17867 invoked from network); 15 Apr 2003 18:12:34 -0000 Original-Received: from pacific-carrier-annex.mit.edu (18.7.21.83) by sclp3.sclp.com with SMTP; 15 Apr 2003 18:12:34 -0000 Original-Received: from central-city-carrier-station.mit.edu (CENTRAL-CITY-CARRIER-STATION.MIT.EDU [18.7.7.72]) by pacific-carrier-annex.mit.edu (8.12.4/8.9.2) with ESMTP id h3FICX3o014788 for ; Tue, 15 Apr 2003 14:12:33 -0400 (EDT) Original-Received: from melbourne-city-street.mit.edu (MELBOURNE-CITY-STREET.MIT.EDU [18.7.21.86]) by central-city-carrier-station.mit.edu (8.12.4/8.9.2) with ESMTP id h3FICUiv023495; Tue, 15 Apr 2003 14:12:32 -0400 (EDT) Original-Received: from arborway (24-6-179.wireless.lcs.mit.edu [18.24.6.179]) ) by melbourne-city-street.mit.edu (8.12.4/8.12.4) with ESMTP id h3FICRU8020432; Tue, 15 Apr 2003 14:12:28 -0400 (EDT) Original-To: ding@gnus.org In-Reply-To: <4n3ckjbqpg.fsf@lockgroove.bwh.harvard.edu> (Ted Zlatanov's message of "Tue, 15 Apr 2003 13:44:43 -0400") User-Agent: Gnus/5.090019 (Oort Gnus v0.19) XEmacs/21.4 (Portable Code, linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:51486 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:51486 Ted Zlatanov writes: > Are you and Simon saying the code also needs a save-restriction inside > the save-excursion? If that's the case, try this (improperly > indented) version of spam-split and see how it works: Aah, that seems to have helped. > I think the code you mean is this: > > (save-excursion > (dolist (check spam-list-of-statistical-checks) > (when (symbol-value check) > (widen) > (gnus-message 8 "spam-split: widening the buffer (%s requires it)" > (symbol-name check)) > (return))) > ...) Yeah, I might write something more like (if (memq nil (mapcar 'not (mapcar 'symbol-value spam-list-of-statistical-checks))) (widen)) Though that eliminates the possibility of the gnus-message. -- David Maze dmaze@mit.edu http://www.mit.edu/~dmaze/ "Theoretical politics is interesting. Politicking should be illegal." -- Abra Mitchell