From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/46391 Path: main.gmane.org!not-for-mail From: Oystein Viggen Newsgroups: gmane.emacs.gnus.general Subject: Splitting on mail contents? (using spam-stat.el) Date: Wed, 04 Sep 2002 14:01:23 +0200 Organization: Tihlde Sender: owner-ding@hpc.uh.edu Message-ID: <03bs7em0a4.fsf@msgid.viggen.net> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031140858 22982 127.0.0.1 (4 Sep 2002 12:00:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 4 Sep 2002 12:00:58 +0000 (UTC) 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 17mYq8-0005yY-00 for ; Wed, 04 Sep 2002 14:00:56 +0200 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 17mYqy-00079v-00; Wed, 04 Sep 2002 07:01:48 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 04 Sep 2002 07:02:23 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id HAA27998 for ; Wed, 4 Sep 2002 07:02:10 -0500 (CDT) Original-Received: (qmail 21140 invoked by alias); 4 Sep 2002 12:01:24 -0000 Original-Received: (qmail 21133 invoked from network); 4 Sep 2002 12:01:24 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by gnus.org with SMTP; 4 Sep 2002 12:01:24 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 17mZO8-0005kS-00 for ; Wed, 04 Sep 2002 14:36:04 +0200 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 26 Original-NNTP-Posting-Host: colargol.tihlde.hist.no Original-X-Trace: quimby.gnus.org 1031142964 22099 158.38.48.10 (4 Sep 2002 12:36:04 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 4 Sep 2002 12:36:04 GMT X-URL: http://www.tihlde.org/~oysteivi/ X-Phone-Number: +47 97 11 48 58 X-Address: Tordenskioldsgt. 12, 7012 Trondheim, Norway X-MSMail-Priority: High X-Face: R=b-K(^1#]KR?6moG:Wrc/t>p)?p`?bgHg36M3hZ>^?\akat3!nX*8xZpIvZrI#]ZzN`I<+ L{8#pdH*1SOB$Zu-_e1<>iE$5cGiLhRem.ct.QtE=&v@9\S_6slX4='![%,F3^&ed5Y5g-#!N'Lr[s &Gfs3c}pYq^oUo{8l-qD87s[P1~+f([41~gD}Pj)nX|KcVv;tF4IIx%pnN\UL|SNT User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.1 (Capitol Reef, i386-debian-linux) Cancel-Lock: sha1:XXAtQXIm9WAhg/seknE45EYkubk= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:46391 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:46391 Hi I've been playing with Alex Schroeder's spam-stat.el, getting quite good results on the dry run tests, and would like to try using it in my split rules. The problem is that I can't figure out how to get at the complete mail and not just the headers from a function in nnmail-split-methods. I don't use fancy splitting, and gnus-original-article-buffer, which is used in spam-stat-split-fancy seems not to be updated during splitting, and will just contain the last article viewed. Will I need to do some very fancy widening in my function, or is there a standard way? I'd like to have something like this: (setq nnmail-split-methods '(("mail.spam-stat" my-spam-stat-non-fancy-split) ;; other rules here ("mail.misc" ""))) My-spam-stat-non-fancy-split should run spam-stat-score-buffer on the complete mail, both the headers and the contents. Can this be done? Oystein -- When in doubt: Think again.