From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/46472 Path: main.gmane.org!not-for-mail From: Jonas Steverud Newsgroups: gmane.emacs.gnus.general Subject: Re: Splitting and procmail Date: Tue, 10 Sep 2002 13:25:43 +0200 Organization: The Deciples of Albericht Nibelungen Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031657257 2843 127.0.0.1 (10 Sep 2002 11:27:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 10 Sep 2002 11:27:37 +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 17ojB8-0000ja-00 for ; Tue, 10 Sep 2002 13:27:35 +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 17oj9q-0008US-00; Tue, 10 Sep 2002 06:26:14 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 10 Sep 2002 06:26:49 -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 GAA09850 for ; Tue, 10 Sep 2002 06:26:36 -0500 (CDT) Original-Received: (qmail 4356 invoked by alias); 10 Sep 2002 11:25:55 -0000 Original-Received: (qmail 4351 invoked from network); 10 Sep 2002 11:25:55 -0000 Original-Received: from osiris.medic.chalmers.se (HELO mail.dtek.chalmers.se) (129.16.30.197) by gnus.org with SMTP; 10 Sep 2002 11:25:55 -0000 Original-Received: from licia.dtek.chalmers.se (licia.dtek.chalmers.se [129.16.30.88]) by mail.dtek.chalmers.se (Postfix) with ESMTP id 9CC123B226 for ; Tue, 10 Sep 2002 13:25:43 +0200 (MEST) Original-Received: (from d4jonas@localhost) by licia.dtek.chalmers.se (8.9.3/8.9.3) id NAA21120; Tue, 10 Sep 2002 13:25:43 +0200 (MEST) X-Authentication-Warning: licia.dtek.chalmers.se: d4jonas set sender to d4jonas@dtek.chalmers.se using -f Original-To: ding@gnus.org Mail-Copies-To: never In-Reply-To: (Scott A Crosby's message of "08 Sep 2002 22:40:33 -0500") Original-Lines: 67 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.1 (sparc-sun-solaris2.8) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:46472 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:46472 Scott A Crosby writes: > On Sun, 08 Sep 2002 10:40:45 +0200, Jonas Steverud writes: [...] >> My idea was to use mail splitting (maybe the fancy one too) and have >> procmail do the spam filtering. [...] > One option is to use 'formail' within procmail to put a special header > on what you classify as spam and have the first split-fancy rule match > on that header and put matching emails into the spam folder. I think I will have Spamassassin and formail mark the mails with a X-Steverud-Procmailrc header and then split on that using (fancy?) split and have the split take care of mailing lists etc. I have done an analysis of my .procmailrc and found that the spam filtering are probably the same as SA and those that are not can easily be taken care of with a split rule or two. Is it possible to have a split that checks the From and if a certain regexp matches, a function is called that tests wheather the sender is a member of BBDB and if not it is placed in "Spam", otherwise the next rule is tested? I.e. use BBDB as a white list. (I consider all mails from MSN, Hotmail, Yahoo etc. as Spam. Seldom fails.) It is the middle part of the paragraph above, the test against the BBDB, I cannot figure out. >> I have fairly nice spam filtering in my procmail and I don't want to >> rewrite it as splitting rules (takes too much time). I am also > > I'm curious.. What does your system look like? Why not rewrite it, > piecemeal, into fancy-split-mail rules? It takes some time to "port" it, my procmailrc is 561 lines including blank lines and comments, but I found out that most of the spam filters where probably covered by SA and the splitting of mailinglists was not that hard to convert. That's why. :-) Besides, I like to see how many mails I got from diffrent sources when I log in (using mailstat) but I came up with a solution to that problem too the other day. Not an issue anylonger. I will probably do a test as soon as I got some time over in a week or two. >> planning to start using Spamassassin (the spam.el seems interesting, I >> really like the idea with using BBDB as a whitelist since I consider >> all mails from MSN, Hotmail, Yahoo et al as spam) so I seems to need >> procmail however I do. > > Spamassassin offers an automatic whitelist option where it looks at > the average score for email claiming to be from a particular user and > adjusts itself as suited. I would like to use BBDB as a white list. I do not like to store information in two diffrent places, they are going to get out of sync sooner or later. It is easier to add new persons in one place - to the BBDB, where they going to end up anyway - then in two places (even if the SA white list is some sort of automaticly generated list). In this case I do not want some Artificially Stupidity-generated list but a list I control 100 % myself. Thanks everyone that has responded. -- ( www.dtek.chalmers.se/~d4jonas/ ! Wei Wu Wei ) ( Meaning of U2 Lyrics, Roleplaying ! To Do Without Do )