Le lun 15/03/2004 � 17:05, Sylvain BOILY a �crit :
> Le lun 15/03/2004 � 16:43, Thomas Mangin a �crit :
> > Hi,
> > 
> > > /var/qmail/bin/spam_filter
> > > -------------<SNIP>----------------
> > > LOGDIR="/tmp"
> > > 
> > > logfile "$LOGDIR/maildroprc.log"
> > > log "Filter start"
> > > 
> > > `test -d ./Maildir/.SPAM`
> > > if ( $RETURNCODE == 1 )
> > > {
> > >   log "Create SPAM box"
> > >         `/usr/local/bin/maildirmake -f SPAM ./Maildir`
> > >   `echo INBOX.SPAM > ./Maildir/courierimapsubscribed`

Sorry i forgot > :-]
`echo INBOX.SPAM >> ./Maildir/courierimapsubscribed`


> > > }
> > > 
> > > if ( /^X-Spam-Status: Yes/ )
> > > {
> > >         exception {
> > >                 log "Deliver to $USER"
> > >                 to "./Maildir/.SPAM/"
> > >         }
> > > 
> > >         exception {
> > >                 to "./Maildir"
> > 
> > Not a maildrop expert but it look like to me that it should read :
> > to "./Maildir/" 
> 
> Thanks :-)
> 
> > 
> > >         }
> > > }
> > > else
> > > {
> > >         to "./Maildir/"
> > > }
> > > 
> > > log "Filter finish"
> > 
> > Thomas
-- 

Reply via email to