On Thu, 2007-11-08 at 11:53 -0500, Richard Secor wrote:
> On Nov 8, 2007, at 10:53 AM, Rick Romero wrote:
> > 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
>
> Well that works for anything marked as Spam.
> But anything not Spam is coming in double still.
>
> I tried putting
> EXITCODE=99
> before every "exit" and at the very end of the mailfilter file.
> This works, however, Vacation messages never get sent!
>
> Is there another EXITCODE that will stop double delivery but still
> allow a vacation message when the original message is not considered
> spam?
What does your script look like?
Basically, if you don't deliver to the INBOX within the script,
the .qmail file will take care of the final delivery - whatever that may
be. If you have vacation set, that should occur after the mailfilter
settings as well - I'm not sure how your vacaton setup works..
The only thing I use mailfilter for are 'exceptions to the rule'. Those
get 'dealt with', and exitcode=99 is set to end delivery there.
Everything else is allowed to flow through the normal qmail delivery
scheme by not setting the exit code.
Rick
!DSPAM:4733416c32002104920338!