2 messages in net.sourceforge.lists.courier-maildrop[maildropl] Filtering TO: FROM: for t...
FromSent OnAttachments
Steve SchofieldAug 24, 2003 8:11 pm 
Matthias AndreeAug 25, 2003 8:03 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 TO: FROM: for this newbieActions...
From:Steve Schofield (ste@mail.adminblogs.com)
Date:Aug 24, 2003 8:11:11 pm
List:net.sourceforge.lists.courier-maildrop

I'm a newbie to using Maildrop, I've been successful using Qmail, Qmail-scanner, Spamassassin and Maildrop to place SPAM to a separate folder. However, I'm trying to figure out also filtering the several LISTS i'm on to their own folder before going into the INBOX just as the SPAM that works so well. I've searched the internet but found nothing that will help me filter based on TO:, FROM: CC: etc. headers. Please help this newbie! The TO: and FROM examples below didn't work so I commented out until I get this figured out.

Here is my current maildrop mailfilter.

SHELL="/bin/sh" import EXT import HOST LOGFILE = "maildrop.log" #VERBOSE="5"

if ( /^X-Spam-Status: *Yes/) { # make sure .Spam folder exists

`test -d ./Maildir/.Spam` if( $RETURNCODE == 1 ) { `maildirmake -f Spam ./Maildir` }

# then try delivering to the Spam folder exception { to "/usr/local/vpopmail/domains/mail.adminblogs.com/steve/Maildir/.Spam/" } }

if ( /^Delivered-To: priv@aspadvice.com/ ) { to "/usr/local/vpopmail/mail.adminblogs.com/steve/Maildir/.private-recreation" }

# Store messages to Qmail in their own folder #if (/^To:priv@aspadvice.com/) #{ # to "/usr/local/vpopmail/domains/mail.adminblogs.com/steve/Maildir/.private-recr eation" #}

# Store messages to Qmail in their own folder #if (/^From:.*bgeek.com/) #{ # to "/usr/local/vpopmail/domains/mail.adminblogs.com/steve/Maildir/.Lists" #}

# Default delivery exception { to "/usr/local/vpopmail/domains/mail.adminblogs.com/steve/Maildir" }