From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/9023 Path: news.gmane.org!not-for-mail From: Peter Russell Newsgroups: gmane.emacs.gnus.user Subject: Spam Package help Date: Mon, 21 May 2007 11:31:56 GMT Organization: Qustom Message-ID: <85veems993.fsf@qustom.co.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1179747631 26273 80.91.229.12 (21 May 2007 11:40:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 May 2007 11:40:31 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Mon May 21 13:40:29 2007 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hq6FU-0002Wg-KH for gegu-info-gnus-english@m.gmane.org; Mon, 21 May 2007 13:40:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hq6FU-0004Xt-7X for gegu-info-gnus-english@m.gmane.org; Mon, 21 May 2007 07:40:24 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!news.highwinds-media.com!newspeer1-win.ntli.net!newsfe7-win.ntli.net.POSTED!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) Cancel-Lock: sha1:VEKmyMwwH2IqAzMKqtoVyGtm5rc= Original-Lines: 91 Original-NNTP-Posting-Host: 80.2.84.204 Original-X-Complaints-To: http://www.virginmedia.com/netreport Original-X-Trace: newsfe7-win.ntli.net 1179747116 80.2.84.204 (Mon, 21 May 2007 12:31:56 BST) Original-NNTP-Posting-Date: Mon, 21 May 2007 12:31:56 BST Original-Xref: shelby.stanford.edu gnu.emacs.gnus:79208 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:9023 Archived-At: Hello again, Well my migration to Gnus seems to be going well. I've got a few more issues to sort out before it's a complete success. The most important is getting spam filtering working satisfactorily. I am trying to use the bogofilter back end of the spam package, along with a bbdb-whitelist (a brilliant idea), and regex headers to catch things marked as spam upstream (not a lot is marked, but there's been no false positives, so I guess I might as well) I receive email to that has been sent to several different email addresses, some more public than others, and which have different levels of importance. For example: - support requests must receive answers, so I must be very careful not to lose ham in my spam. - email sent to my personal address is probably not as important, unless it's from a client - in which case the BBDB white list will get it. this address gets a *lot* of spam. There are two things I'd like to achieve: 1. Since these addresses have different profiles, I'd like to use different bogofilter databases for them. However as far as I can see there is only one global setting for the database file. Is this possible - if it isn't now, it worth adding? 2. Since I need to check support request spam (for example) more often and more carefully than main INBOX spam, I want to set up some specific spam folders, which are linked to their parent folders. I have this almost working. For number 2, the tree and rules should be something like this: INBOX <- All mail is delivered here INBOX.spam <- The default place to drop spam. Checked infrequently INBOX.Support Requests <- some mail is split here INBOX.Support Requests.spam <- Spam to the support requests addr. goes here. Checked often. INBOX.Lists... <- Spam that would otherwise be split to other folders should go to INBOX.spam (I hope the formatting of that comes out OK, message mode seems to handle indenting text very nicely :-) ) What I currently have in my gnus.el is this: ;; We want spam checking! (spam-initialize) (setq spam-use-bbdb t spam-use-regex-headers t spam-use-bogofilter t) ;; This doesn't work! What I hoped it would do is to say "If a folder ;; doesn't end in .spam then it's a ham folder, and any spam in it ;; should be moved to the same folder name, but with .spam appended. ;; If it does end in .spam, it's a spam folder, and any ham should be ;; moved to the folder with the same name, but without the .spam. Not ;; exactly what I describe above, but close enough. As it is, I don't ;; believe it's doing anything at all. I have no idea how to debug ;; this. (setq gnus-parameters '(("^\\(nnimap\\+mail.qustom.co.uk:INBOX.*\\)$" (spam-contents . gnus-group-spam-classification-ham) (spam-process-destination . "\\1.spam") '(("^\\(nnimap\\+mail.qustom.co.uk:INBOX.*\\)\\.spam$" (spam-contents . gnus-group-spam-classification-spam) (ham-process-destination . "\\1") ;; message splitting - shortened and for demonstration. This does ;; work. (setq nnimap-split-inbox '("INBOX") nnimap-split-download-body t nnimap-split-rule 'nnimap-split-fancy nnimap-split-fancy '(| (any "supportaddress" ;; not the real address (| (: spam-split "INBOX.Support Requests.spam") "INBOX.Support Requests")) (| (: spam-split "INBOX.spam") "INBOX"))) Sorry this post is so long, I didn't have time to make it shorter :-) Any help would be greatly appreciated. -- Peter Russell Qustom