OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: FILTER_README suggestions

From: Eray Aslan (eray.aslancaf.com.tr)
Date: Fri Sep 01 2006 - 12:30:29 CDT


On Fri, September 1, 2006 7:40 pm, Wietse Venema wrote:
> If you have examples to share, it will save me time.

Here is a sample maildroprc file:

maildirmake=/path/to/maildirmake
MAILDIR=$DEFAULT
JUNK_FOLDER=.Spam

_JUNK_DEST=$MAILDIR/$JUNK_FOLDER/

#automatically create the Junk folder
`test -d $_JUNK_DEST`
if ($RETURNCODE != 0 )
{
        `$maildirmake $_JUNK_DEST`
        # auto subscribe. the following works for courier-imap
        `echo $_JUNK_DEST >> $MAILDIR/courierimapsubscribed`
}

# Spam gets tagged with X-Spam-Flag
if ( /^X-Spam-Flag: YES/:h )
{
   exception {
      to "$_JUNK_DEST"
   }
}
else
{
   exception {
      to "$MAILDIR/"
   }
}

--
Eray