From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/1029 Path: news.gmane.org!not-for-mail From: Alex Schroeder Newsgroups: gmane.emacs.gnus.user Subject: Re: spam-stat.el -- filtering spam based on statistics as suggested by Paul Graham Date: Sun, 01 Sep 2002 02:37:28 +0200 Message-ID: <87heha4kaf.fsf@emacswiki.org> References: <87hehtirad.fsf@emacswiki.org> <87wuqm6egm.fsf@emacswiki.org> <87lm6t5hwl.fsf@emacswiki.org> <8765xvlr1o.fsf@emacswiki.org> <87znv5fqlz.fsf@emacswiki.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138667871 9428 80.91.229.2 (31 Jan 2006 00:37:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:37:51 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:28:31 2006 Original-Newsgroups: gnu.emacs.gnus 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 Original-Followup-To: gnu.emacs.help User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2.90 (i686-pc-linux-gnu) Cancel-Lock: sha1:zlu1vHJXP6KSS5NzLMKQDFnYUGY= Original-NNTP-Posting-Host: 217.162.239.43 Original-X-Trace: news.swissonline.ch 1030840529 217.162.239.43 (1 Sep 2002 02:35:29 +0200) Original-X-Complaints-To: abuse@swissonline.ch Original-Path: quimby.gnus.org!lackawana.kippona.com!news.teledanmark.no!gatel-ffm!news-fra1.dfn.de!news-nue1.dfn.de!uni-erlangen.de!news.imp.ch!news.imp.ch!news-zh.switch.ch!news.swissonline.ch!not-for-mail Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:1169 Original-Lines: 57 X-Gnus-Article-Number: 1169 Tue Jan 17 17:28:31 2006 Xref: news.gmane.org gmane.emacs.gnus.user:1029 Archived-At: Hm, I've been using it in my .gnus for a while now, and I get errors in nnml-split-fancy when I use the following setup. This setup does some spam filtering beforehand, then it uses the BBDB to split, and then at very end, I try to figure out wether the remaining mail should go into mail.misc or mail.spam. This is where I use the split (: spam-stat-split-fancy). The errors, however, results in several mails getting split into the bogus group. Does anybody know what is wrong with my code? Suggestions as to debug it? Maybe wrap the body of spam-stat-split-fancy in a condition-case or something? Perhaps this is related to some problems with cl.el specific functions being used without a (require 'cl) in the file in Emacs? At startup that could mean that these functions fail, but after a while cl.el is loaded and the error disappears? Alex. (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") ;; 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") ;; weird character sets are spam, too ("Subject" "=?ks_c_5601-1987" "mail.spam") ;; virus detection is spam ("Subject" "^Norton AntiVirus detected" "mail.spam") ;; temporary spam stuff (any "machine365.com" "mail.spam") ;; 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"))