From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/47790 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: Backend specific spam filtering Date: Thu, 21 Nov 2002 22:13:52 -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: <84d6p166gn.fsf@despairon.bofh.org.uk> <4ny97nx7qo.fsf@brainy.bwh.harvard.edu> <84of8ihcln.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 1037934663 19941 80.91.224.249 (22 Nov 2002 03:11:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 22 Nov 2002 03:11:03 +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 18F4Dd-0005BE-00 for ; Fri, 22 Nov 2002 04:11:01 +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 18F4Ca-0007DS-00; Thu, 21 Nov 2002 21:09:56 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 21 Nov 2002 21:10:44 -0600 (CST) 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 VAA08836 for ; Thu, 21 Nov 2002 21:10:21 -0600 (CST) Original-Received: (qmail 24645 invoked by alias); 22 Nov 2002 03:09:28 -0000 Original-Received: (qmail 24640 invoked from network); 22 Nov 2002 03:09:28 -0000 Original-Received: from ns2.beld.net (208.229.215.82) by gnus.org with SMTP; 22 Nov 2002 03:09:28 -0000 Original-Received: from heechee.beld.net (dhcp-0-30-bd-1-93-b2.cpe.beld.net [65.202.179.203]) by ns2.beld.net (Postfix) with ESMTP id 8A2AC3B84E; Thu, 21 Nov 2002 22:09:23 -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), ?=@ns2.beld.net, ding@gnus.org In-Reply-To: <84of8ihcln.fsf@lucy.cs.uni-dortmund.de> (kai.grossjohann@uni-duisburg.de's message of "Thu, 21 Nov 2002 21:49:56 +0100") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-redhat-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:47790 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:47790 On Thu, 21 Nov 2002, kai.grossjohann@uni-duisburg.de wrote: > Maybe regexes aren't necessary anymore now that we have the variable > gnus-parameters. What do people think? I'm all for using gnus-parameters. Can anyone suggest additions or improvements to the list below, especially variable names? All the parameters would be t or nil, except for to-group-processed-spam and group-is-spam. (note that ham == non-spam in spam.el lingo) - group-is-spam: whether this group holds only spam (parallels spam-junk-mailgroups, all unread messages get marked as spam on summary entry, nil by default, can be t for a spam group or 'none for an explicit ham group) Setting group-is-spam to 'none is useful for whitelist and BBDB seeding, see below. We thus explicitly say that the group contains only ham. Entering a group with group-is-spam set to t automatically gives all unread messages the spam mark. - to-group-processed-spam: whether spam articles from this group should be moved to another group, marked as read, after being processed (this would be a string value, nil, or 'expire to expire processed articles, nil by default) - spam-process-with-ifile: whether ifile should be used to process spam articles on summary exit (nil by default) - spam-process-with-bofogilter: whether bogofilter should be used to process spam articles on summary exit (t by default, but note that spam-process is nil by default, so this wouldn't be activated) - spam-process-to-blacklist: whether the blacklist should be filled with spam message senders on summary exit, instead of when the message is marked as spam (nil by default) - spam-process-ham-to-whitelist: whether the whitelist should be filled with ham message senders on summary exit if this is a ham group with group-is-spam set to 'none (nil by default) - spam-process-ham-to-BBDB: whether the BBDB should be filled with ham message senders on summary exit if this is a ham group with group-is-spam set to 'none (nil by default) - spam-process: whether spam will be processed at summary exit (nil by default) Maybe I should give a little pseudo-algorithm :) See below. Ted --------------------------------------------------------------------- At summary entry: if (group-is-spam is t) set the spam mark on all unread articles endif At summary exit: if (spam-process is t) if (group-is-spam is t or nil) check and do spam-process-with-ifile on spam-marked articles check and do spam-process-with-bogofilter on spam-marked articles check and do spam-process-to-blacklist on spam-marked articles elsif (group-is-spam is 'none) check and do spam-process-ham-to-whitelist on unread articles check and do spam-process-ham-to-BBDB on unread articles endif endif if (to-group-processed-spam is a string) set article mark to read on spam-marked articles move spam-marked articles to to-group-processed-spam elsif (to-group-processed-spam is 'expire) set article mark to expired on spam-marked articles endif