From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/46396 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-15?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: Splitting on mail contents? (using spam-stat.el) Date: Wed, 04 Sep 2002 16:56:59 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: <03bs7em0a4.fsf@msgid.viggen.net> <03y9ahlu15.fsf@msgid.viggen.net> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1031151430 26753 127.0.0.1 (4 Sep 2002 14:57:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 4 Sep 2002 14:57:10 +0000 (UTC) Cc: ding@gnus.org 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 17mbae-0006xM-00 for ; Wed, 04 Sep 2002 16:57:08 +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 17mbbY-0008JI-00; Wed, 04 Sep 2002 09:58:04 -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:58:40 -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 JAA28305 for ; Wed, 4 Sep 2002 09:58:27 -0500 (CDT) Original-Received: (qmail 1957 invoked by alias); 4 Sep 2002 14:57:42 -0000 Original-Received: (qmail 1952 invoked from network); 4 Sep 2002 14:57:42 -0000 Original-Received: from waldorf.cs.uni-dortmund.de (129.217.4.42) by gnus.org with SMTP; 4 Sep 2002 14:57:42 -0000 Original-Received: from lothlorien.cs.uni-dortmund.de (lothlorien [129.217.19.67]) by waldorf.cs.uni-dortmund.de with ESMTP id g84Ev5807395; Wed, 4 Sep 2002 16:57:05 +0200 (MES) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.19.80]) by lothlorien.cs.uni-dortmund.de id QAA15332; Wed, 4 Sep 2002 16:57:00 +0200 (MET DST) Original-Received: by lucy.cs.uni-dortmund.de (Postfix, from userid 6104) id EBAB03ADDC; Wed, 4 Sep 2002 16:56:59 +0200 (CEST) Original-To: Oystein Viggen Mail-Followup-To: Oystein Viggen , ding@gnus.org In-Reply-To: <03y9ahlu15.fsf@msgid.viggen.net> (Oystein Viggen's message of "Wed, 04 Sep 2002 16:16:22 +0200") Original-Lines: 41 User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:46396 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:46396 Oystein Viggen writes: > * [Kai Gro=DFjohann]=20 > >> 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. OK, sorry, then. >> 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. Well, I remember that Gnus uses two different buffers for splitting and for `B r'. Beware! > 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 :) Maybe not... kai --=20 A large number of young women don't trust men with beards. (BFBS Radio)