From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/48447 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: ifile-gnus: Add hooks to Gnus on move/edit/delete? Date: Tue, 31 Dec 2002 09:32:38 -0500 Organization: =?koi8-r?q?=F4=C5=CF=C4=CF=D2=20=FA=CC=C1=D4=C1=CE=CF=D7?= @ Cienfuegos Sender: owner-ding@hpc.uh.edu Message-ID: References: <84fzsgk72x.fsf@lucy.cs.uni-dortmund.de> <847kdswkd6.fsf@lucy.cs.uni-dortmund.de> <84fzsfs5il.fsf@lucy.cs.uni-dortmund.de> <84bs329yrb.fsf@lucy.cs.uni-dortmund.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1041345126 13648 80.91.224.249 (31 Dec 2002 14:32:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 31 Dec 2002 14:32:06 +0000 (UTC) Cc: ding@hpc.uh.edu, jhbrown@ai.mit.edu 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 18TNR5-0003Xw-00 for ; Tue, 31 Dec 2002 15:32:03 +0100 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 18TNRV-0008SB-00; Tue, 31 Dec 2002 08:32:29 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 31 Dec 2002 08:33:23 -0600 (CST) Original-Received: from ns1.beld.net (ns1.beld.net [208.229.215.81]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id IAA17114 for ; Tue, 31 Dec 2002 08:33:11 -0600 (CST) Original-Received: from heechee.beld.net (dhcp-0-30-bd-1-93-b2.cpe.beld.net [24.233.65.6]) by ns1.beld.net (Postfix) with ESMTP id 8BC773BA32; Tue, 31 Dec 2002 09:32:12 -0500 (EST) Original-To: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) 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: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann), ?=@ns1.beld.net, ding@hpc.uh.edu, jhbrown@ai.mit.edu In-Reply-To: <84bs329yrb.fsf@lucy.cs.uni-dortmund.de> (kai.grossjohann@uni-duisburg.de's message of "Tue, 31 Dec 2002 13:08:40 +0100") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:48447 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:48447 On Tue, 31 Dec 2002, kai.grossjohann@uni-duisburg.de wrote: > Ted Zlatanov writes: > >> On Mon, 30 Dec 2002, kai.grossjohann@uni-duisburg.de wrote: >>> Well, nnmail-split-methods (or nnmail-split-fancy) could use >>> spam.el to put spam messages into a special group. spam.el could >>> invoke ifile, telling it to use ~/.idata.spam. After this, >>> `normal' ifile-gnus processing could be done on the remaining ham. >> >> On second thought, why not have something like >> >> (: spam-split) >> (: ifile-split) >> >> in the split rules? > > That might implement my suggestion. I haven't tried it :-) If it > works, it's a really good idea. I think it should, no reason why not. The ifile invocation inside spam-split is binary. We invoke ifile-spam-filter with 'nil' as the other-split parameter, and we set ifile-primary-spam-group to spam-split-group; this means that only spam-split-group or nil will be returned. (defun ifile-spam-filter (other-split) (if (and ifile-active (equal (ifile-recommend) "spam")) ifile-primary-spam-group other-split)) So just add this (sorry, no ifile-split exists) (: ifile-recommend) after (: spam-split) in your nnmail split rules and turn ifile on. The penalty is that you invoke ifile twice for each article. As I said, I want to wait until the ifile interface is stable before I have spam.el support it for summary exit processing of spam. I hope that's OK with everyone. Right now, you can manually move spam-marked articles to your spam-split-group, and ifile-gnus.el will understand that you want them to be considered spam. > (I wonder if spam.el needs to tell ifile to use another index file.) I don't think so, this should work right away. Ted