Here is my script

import HOME
import MAILDIRQUOTA
import RECIPIENT
SHELL="/bin/bash"
logfile "/tmp/maildrop.log"

env > '/tmp/env'

if ( $SIZE < 26144 )
{
        exception {
                xfilter "/usr/local/ActivePerl/site/bin/spamc -u $RECIPIENT"
        }
}

if ( (/^X-Spam-Flag: YES/:h) || (/^X-Spam-Status: Yes/:h) )
{
        log "$TICKS : >>> TAGGED AS *** SPAM ***:$RECIPIENT**"
        log "$TICKS : >>> Mail successfully delivered to
$HOME/Maildir/.Spam/"
        exception {
           `test -d "$HOME"`
            if ( $RETURNCODE == 1 )
            {
                `mkdir -p "$HOME"`
            }
            `test -d "$HOME/Maildir/"`
            if ( $RETURNCODE == 1 )
            {
                `/usr/local/maildrop/bin/maildirmake $HOME/Maildir/`
            }
            `test -d "$HOME/Maildir/.Spam/"`
            if ( $RETURNCODE == 1 )
            {
                `/usr/local/maildrop/bin/maildirmake -f Spam $HOME/Maildir/`
            }
            to "$HOME/Maildir/.Spam/";
        }
}
else
{
        `test -d "$HOME"`
        if ( $RETURNCODE == 1 )
        {
           `mkdir -p "$HOME"`
        }
        `test -d "$HOME/Maildir/"`
        if ( $RETURNCODE == 1 )
        {
           `/usr/local/maildrop/bin/maildirmake $HOME/Maildir/`
        }
        to "$HOME/Maildir/"
}





> Pls post your maildrop filter script.
>
> On 4/11/07, Chris Leung <[EMAIL PROTECTED]> wrote:
>>
>> Dear all,
>>
>> I've setup qmail-ldap with spamassassin.  And let maildrop be the
>> delivery
>> program.  The email will get check with spamassassin by maildrop, such
>> that every user can mark their email as spam base on user personal
>> setting.  (Since, spamd cannot deal with multiple recipient email with
>> personal setting perference).
>>
>> My problem is that, qmail-reply basically won't send reply to sender if
>> the message marked as SPAM.  But now, I move the spam tagging phase when
>> email drop into user mailbox, the qmail-reply will reply to sender no
>> matter the message is SPAM or not.  Anyone have some idea about how to
>> keep spam tagging base on personal perference and also keep the
>> qmail-reply behaviour not reply when message spam tagged.
>>
>> Thanks!
>>
>>
>> Chris
>>
>
>
>
> --
> slr
>

Reply via email to