From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/46479 Path: main.gmane.org!not-for-mail From: Alex Schroeder Newsgroups: gmane.emacs.gnus.general Subject: Re: spam*.el and ifile-gnus.el? Date: Tue, 10 Sep 2002 22:56:37 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: <8765xdva0q.fsf@emacswiki.org> References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1031691347 23374 127.0.0.1 (10 Sep 2002 20:55:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 10 Sep 2002 20:55:47 +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 17os2z-00064c-00 for ; Tue, 10 Sep 2002 22:55:45 +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 17os1k-0002yL-00; Tue, 10 Sep 2002 15:54:29 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 10 Sep 2002 15:55:05 -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 PAA10815 for ; Tue, 10 Sep 2002 15:54:52 -0500 (CDT) Original-Received: (qmail 24838 invoked by alias); 10 Sep 2002 20:54:08 -0000 Original-Received: (qmail 24833 invoked from network); 10 Sep 2002 20:54:08 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by gnus.org with SMTP; 10 Sep 2002 20:54:08 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 17osbr-0005mt-00 for ; Tue, 10 Sep 2002 23:31:47 +0200 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 68 Original-NNTP-Posting-Host: dclient217-162-239-98.hispeed.ch Original-X-Trace: quimby.gnus.org 1031693507 20718 217.162.239.98 (10 Sep 2002 21:31:47 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 10 Sep 2002 21:31:47 GMT X-Face: ^BC$`[IcggstLPyen&dqF+b2'zyK#r.mU*'Nms}@&4zw%SJ#5!/7SMVjBS7'lb;QK)|IPU5U'o1'522W4TyzB3Ab*IBo^iw]l4|kUbdZuUDO6=Um-.4IzhNiV'B"@K#jy_(wW|Zbk[34flKY^|PrQ?$u2\fKg^]AY>wOX#H32i User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2.90 (i686-pc-linux-gnu) Cancel-Lock: sha1:UHM9cpbODQb4yZJb4DW92ISNNWk= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:46479 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:46479 Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes: > Has anyone connected spam*.el and ifile-gnus.el? > > Right now, I move messages into the spam group to tell ifile that > they are spam, but maybe spam*.el can do that for me? Here is what I do. I filter using the BBDB as a whitelist. I filter away all HTML-only and Korean mail into mail.spam.filtered, because I don't want to train spam-stat.el on them. Some computer challenged people send me HTML-only mail, so I need them in the list as well. :) The rest is either for mail.misc or mail.spam. I use spam-stat.el to make this decision for me. And from time to time, I retrain spam-stat.el on mail.misc and mail.spam only. Thus, the splitting and training works fine using spam-stat.el. This approach is not compatible with the ideas in spam.el. spam.el could use spam-stat.el as well, but the glue code is missing (and no new spam-stat.el being available does not improve the situation...). Alex. PS: At the moment spam-stat.el still must have some bugs in it, but it happens very rarely. This is why I have not yet released a new version. I would like to release it as soon as possible, so if anybody wants to help debugging it, just ask. :) (setq nnmail-crosspost nil nnmail-split-methods 'nnmail-split-fancy bbdb/gnus-split-default-group nil bbdb/gnus-split-nomatch-function nil bbdb/gnus-split-myaddr-regexp gnus-ignored-from-addresses nnmail-expiry-wait 28 gnus-total-expirable-newsgroups (regexp-opt '("mail.guile" "mail.gnutella" "mail.emacs.devel" "mail.emacs.ilisp" "mail.frieden.jetzt" "mail.baeckeranlage")) nnmail-split-fancy `(| ("Gnus-Warning" "This is a duplicate" "mail.spam.duplicates") ;; spam filtering based on spam assassin ;; ("X-Spam-Flag" "YES" "mail.spam") ;; ("X-Spam-Level" "\\*\\*\\*\\*\\*\\*\\*" "mail.spam.filtered") ;; computer challenged people I know sending me HTML mails ("From" "Sarah Leiken" "mail.family") ;; remaining HTML only mail is spam ("Content-Type" "text/html" "mail.spam.filtered") ;; weird character sets are spam, too ("Subject" "=?ks_c_5601-1987" "mail.spam.filtered") ;; virus detection is spam ;; ("Subject" "^Norton AntiVirus detected" "mail.spam.filtered") ;; temporary spam stuff ;; (any "machine365.com" "mail.spam.filtered") ;; now use the BBDB to split (: (lambda () (car (bbdb/gnus-split-method)))) ;; some of the packages I maintain ("Subject" "\\(color-theme\\|ansi-color\\)" "mail.emacs") ;; spam filtering based on statistics (: spam-stat-split-fancy) ;; mail from and to me, mail to any of the emacswiki addresses ;; (any ,gnus-ignored-from-addresses "mail.misc") ;; (any ".*@emacswiki.org" "mail.emacs.wiki") ;; anonymous mail, probably spam ;; "mail.spam.anonymous" "mail.misc"))