only one problem is left: the "maildirsize"-file HAS to be there allready -
maybe we can create it in our filter-script when it doesn't exist (e.g. with
./vuserinfo -q [EMAIL PROTECTED])
will try that later
bye
----- Original Message -----
From: "Thorsten Voss" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 17, 2003 4:27 PM
Subject: [qmailadmin] spamprotection and quotas (UPDATE)
> hi everybody,
>
> i just figured out that we have to use deliverquota in out maildrop-filter
> and quotas do work, again ;))
>
>
> --- cut --- --- cut --- --- cut --- --- cut --- --- cut --- ---
> ut --- --- cut --- --- cut ---
>
> SHELL="/bin/sh"
>
> VHOME="$PWD/Maildir"
> USERNAME=`echo ${PWD##*/}`
> USERHOST=`PWDTMP=${PWD%/*}; echo ${PWDTMP##*/}`
>
> logfile "mailfilter.log"
>
> if ( $SIZE < 262144 )
> {
> exception {
> xfilter "/usr/bin/spamc -f -u [EMAIL PROTECTED]"
> }
> }
>
> if (/^X-Spam-Flag: *YES/)
>
> {
> exception {
> include $VHOME/.mailfilter
> }
>
> `test -d $VHOME/.Spam`
> if( $RETURNCODE == 1)
> {
> `maildirmake -f Spam $VHOME`
> }
> exception {
> xfilter "/usr/bin/deliverquota -w 90 $VHOME/.Spam"
> }
> }
>
> exception {
> include $VHOME/.mailfilter
> }
>
> # default delivery
> exception {
> xfilter "/usr/bin/deliverquota -w 90 $VHOME"
> }
>
>
>