On Thu, 2007-11-08 at 10:54 -0500, Richard Secor wrote:
> Currently we are using maildrop to check messages and move them to a  
> Spam folder where they are found to be Spam.
> So every pop box has a .qmail file with the following contents:
> | preline -f /usr/local/bin/maildrop mailfilter
> 
> When someone uses QmailAdmin to modify a user QmailAdmin changes the  
> file to have the following:
> | preline -f /usr/local/bin/maildrop mailfilter
> /usr/local/vpopmail/domains/seqlogic.com/rsecor/Maildir/
> 
> This causes the Spam to both be delivered to the Spam folder and the  
> new mail folder and new mail to be duplicated.
> Obviously, I'd like to stop this from happening.

If you do this in your mailfilter file:

if ( $MATCH1 >= 15.0 )
    {
        exception {
         EXITCODE = 99
         to  "$VHOME/Maildir/.Spam/"
         exit
        }
    }

The exitcode prevents the rest of your .qmail file from executing.

Rick




!DSPAM:473332d332002380714761!

Reply via email to