From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/48290 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: Add hooks to Gnus on move/edit/delete? Date: Sun, 29 Dec 2002 14:14:51 -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> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1041189572 6019 80.91.224.249 (29 Dec 2002 19:19:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 29 Dec 2002 19:19:32 +0000 (UTC) Cc: ding@hpc.uh.edu Return-path: Original-Received: from util1.math.uh.edu ([129.7.128.22]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18SiyB-0001Yw-00 for ; Sun, 29 Dec 2002 20:19:31 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by util1.math.uh.edu with esmtp (Exim 4.10) id 18Sitx-0006Ob-00; Sun, 29 Dec 2002 13:15:09 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 29 Dec 2002 13:16:00 -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 NAA09870 for ; Sun, 29 Dec 2002 13:15:47 -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 4B3BB3B881; Sun, 29 Dec 2002 14:14:49 -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 In-Reply-To: <84fzsgk72x.fsf@lucy.cs.uni-dortmund.de> (kai.grossjohann@uni-duisburg.de's message of "Sun, 29 Dec 2002 19:34:14 +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:48290 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:48290 On Sun, 29 Dec 2002, kai.grossjohann@uni-duisburg.de wrote: > First of all, ifile-gnus.el now uses a different mechanism for > communicating with the backend, and the new mechanism works for more > than one backend. Is this released, and does it work with nnimap? I haven't followed ifile-gnus.el, unfortunately, due to lack of time. > However, I think that integrating ifile into spam.el is not so good > because ifile can also be used for general mail splitting. It's > really cool, actually. Alas, I went back to nnimap so I'm having > trouble using it. Ah, so maybe it doesn't work with imap yet :) Right now, all the other spam-split functions return spam-split-group or nil (as a spam/non-spam convention), but IIRC ifile-spam-filter could filter messages into regular groups as well. The use of spam-split-group is just a convention in spam.el. The spam-check-ifile function is as follows right now: ;;; check the ifile backend; return nil if the mail was NOT classified as spam (condition-case nil (progn (require 'ifile-gnus) ;;; (defun spam-check-ifile () (let ((ifile-primary-spam-group spam-split-group)) (ifile-spam-filter nil)))) (file-error (setq spam-list-of-checks (delete (assoc 'spam-use-ifile spam-list-of-checks) spam-list-of-checks)))) So if ifile-spam-filter could and should be replaced with another ifile-gnus.el function that returns regular group names, spam.el can do all the ifile classification automatically if the user just sets spam-use-ifile to t. Does that sound reasonable? Ted