4 messages in net.sourceforge.lists.courier-maildrop[maildropl] courier-maildrop rules in...
FromSent OnAttachments
Jorge Salamero SanzOct 14, 2005 4:36 am 
Jay LeeOct 14, 2005 7:38 am 
Jorge Salamero SanzOct 14, 2005 7:58 am 
moussOct 14, 2005 3:34 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] courier-maildrop rules in mysql dbActions...
From:Jorge Salamero Sanz (ben@cauterized.net)
Date:Oct 14, 2005 4:36:49 am
List:net.sourceforge.lists.courier-maildrop

hi all,

i have a virtual domain system doing the mail delivery with courier-maildrop. the .mailfilter file now includes a file with per user rules:

LOGNAME=tolower($LOGNAME)

`test -e $LOGNAME` if ( $RETURNCODE != 0 ) { `maildirmake $LOGNAME` `maildirmake $LOGNAME/._spam` }

`test -f $LOGNAME/mailfilter` if ( $RETURNCODE == 0 ) { include "$LOGNAME/mailfilter" }

if ( /^X-Spam-Status: YES */) { to "$LOGNAME/._spam" } else { to "$LOGNAME/" }

now i'd like to have these rules in a mysql db so each user could edit his rules thru a simple web frontend.

what do you think should be the best way to do this ?

a perl script querying the database included in each user filter rules ? modify maildrop source to query the database ?

thanks !