3 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Maildrop script
FromSent OnAttachments
rob...@digitalphx.comMar 21, 2005 2:52 pm 
Thorsten HaudeMar 21, 2005 3:33 pm 
rob...@digitalphx.comMar 21, 2005 3:36 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:Re: [maildropl] Maildrop scriptActions...
From:rob...@digitalphx.com (rob@digitalphx.com)
Date:Mar 21, 2005 3:36:50 pm
List:net.sourceforge.lists.courier-maildrop

Hi,

* rob@digitalphx.com wrote (2005-03-21 23:52):

Currently I use vpopmail with qmail and spamassassin. Below is a script I been using with maildrop. I pieced it together via examples and been using it for the past year. Any pointers to help optimize it? Also instead of giving it an exit code if the spam score is high, I need to send it to the user directly into a spam folder. How would I do this?

Here is what I do against Spam:

if (/^Content-Type:[:space:]*text\/html/) { to $spambox }

if ($SIZE < 256000) { xfilter spamc }

if (/^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/) { to /dev/null }

if (/^X-Spam-Status: YES/) { to $spambox }

This deletes anything with a score of 10+ and moves anything from 5 to 10 into $spambox (which I never check anyway, so I might as well delete them). HTML-only mails are also moved to $spambox (even Outlook manages to send a plain text part along with the HTML).

Thanks Robert