3 messages in net.sourceforge.lists.courier-maildrop[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:[maildropl] Maildrop scriptActions...
From:rob...@digitalphx.com (rob@digitalphx.com)
Date:Mar 21, 2005 2:52:09 pm
List:net.sourceforge.lists.courier-maildrop

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? My current script:

NOTE: Excluded paths for $VPOP and $VHOME

if (/^X-Spam-Status: Yes, hits=![0-9]+\.[0-9]+! /:h) {

if ( $MATCH2 >= 7 ) { EXITCODE=0 exit }

}

if (/^X-Spam-Status: *Yes/) { exception { to "$VHOME/Maildir/.Spam" } } else { exception { to "$VPOP" } }

Thanks Robert