From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/46394 Path: main.gmane.org!not-for-mail From: Oystein Viggen Newsgroups: gmane.emacs.gnus.general Subject: Re: Splitting on mail contents? (using spam-stat.el) Date: Wed, 04 Sep 2002 16:16:22 +0200 Organization: Tihlde Sender: owner-ding@hpc.uh.edu Message-ID: <03y9ahlu15.fsf@msgid.viggen.net> References: <03bs7em0a4.fsf@msgid.viggen.net> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1031148955 17577 127.0.0.1 (4 Sep 2002 14:15:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 4 Sep 2002 14:15:55 +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 17mawh-0004Yy-00 for ; Wed, 04 Sep 2002 16:15:52 +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 17maxb-00080W-00; Wed, 04 Sep 2002 09:16:47 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 04 Sep 2002 09:17: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 JAA28245 for ; Wed, 4 Sep 2002 09:17:10 -0500 (CDT) Original-Received: (qmail 1027 invoked by alias); 4 Sep 2002 14:16:25 -0000 Original-Received: (qmail 1022 invoked from network); 4 Sep 2002 14:16:24 -0000 Original-Received: from colargol.tihlde.hist.no (HELO tihlde.org) (qmailr@158.38.48.10) by gnus.org with SMTP; 4 Sep 2002 14:16:24 -0000 Original-Received: (qmail 17125 invoked by uid 1292); 4 Sep 2002 14:16:22 -0000 Original-To: ding@gnus.org 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 In-Reply-To: (Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "Wed, 04 Sep 2002 16:00:53 +0200") Original-Lines: 32 User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.1 (Capitol Reef, i386-debian-linux) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:46394 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:46394 * [Kai Großjohann] > Regular splitting can't run functions, I think. You're wrong there. From C-h v nnmail-split-methods: ,---- | The second element can also be a function. In that case, it will be | called narrowed to the headers with the first element of the rule as | the argument. It should return a non-nil value if it thinks that the | mail belongs in that group. `---- I've tested this, and the function is called as specified. > I suggest that you switch to fancy splitting. Maybe I should, but can functions called from fancy splitting easily access the whole article? It seems I would want to use (: FUNCTION), but according to the documentation, this function will be called "in the buffer containing the message headers". I see that spam-stat-split-fancy uses gnus-original-article-buffer. Does nnmail-split-fancy perhaps store the article in this buffer when splitting? I'll have to investigate that. My nnmail-split-methods is about 100 lines long, and uses a few home grown hacks in addition, so I don't want to do the big job of converting unless I'm pretty sure something will be gained by it :) Oystein -- Ebg13 arire tbrf bhg bs fglyr..