3 messages in net.sourceforge.lists.courier-maildrop[maildropl] Filtering on Spam-Level
FromSent OnAttachments
Rob BrandtJul 2, 2003 11:28 am 
Eric SJul 2, 2003 12:08 pm 
Rob BrandtJul 2, 2003 11:11 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] Filtering on Spam-LevelActions...
From:Rob Brandt (bro@csd-bes.net)
Date:Jul 2, 2003 11:28:59 am
List:net.sourceforge.lists.courier-maildrop

I've gotten maildrop installed and working with my postfix-MySQL-Spamassassin setup. I'm trying to refine my spam filtering to match what I used to have when my filtering was done with my mail client. At that time, I had two spam filters, both of which filtered on the Spam-Level header.

First, I would filter for mails where the X-Spam-Level header contained "******", which means a score of 6. Since any score higher than six also matched that, these emails would go into a mailbox called "spam", and I would check it once a week to make sure there was nothing there I wanted.

Next, I would filter for mails where the X-Spam-Level header contained "***", and move those mails into a mailbox called "spam-maybe", and check it everyday to make sure there was nothing in there I wanted.

I have two clauses in maildrop to do this, and they don't seem to be working:

if ((/^X-Spam-Level: "******"/)) { to "(path to my spam box)" }

followed by

if ((/^X-Spam-Level: "***"/)) { to "(path to my spam-maybe box)" }

I confess I'm not too good at expressions. All of my other clauses work great though, and I have been treating the condition as if they are a "begins with"; for example my maildrop filter is set as:

if(/^Return-Path: <courier-maildrop/ )

and it works great.

I know that the * symbol is special for expressions, but the man page indicates that you can't use it in expressions without quotes around it, which I have, so I guess that should be OK(?). Or maybe it needs to be slashed?

Help appreciated.

Thanks

Rob