I don't believe you need the "HOME=$HOME/$EXT" line. $HOME should point to the user directory containing Maildir.
I've had problems with maildrop when I first set things up. It was like indentation had to be a certain way or something. Of course, it could just be that while changing indentation I fixed something else. I would put both commands on the same line. Again, here's the way I do it and it works. Not sure about the changes you made or why. You don't need the whole path when testing for the .SPAM folder. Everything can be relative to where the maildrop script is run from. Also, check your logs. Maildrop errors will show up. import EXT import HOST import HOME import FROM MAILDIRQUOTA=`~vpopmail/bin/vuserinfo -q [EMAIL PROTECTED] if ((/^X-Spam-Flag:.*YES/)) { `test -d ./Maildir/.SPAM` if( $RETURNCODE == 1 ) { `maildirmake ./Maildir/.SPAM;chown -R vpopmail.vchkpw ./Maildir/.SPAM` } to "./Maildir/.SPAM/" } to "./Maildir/" > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 03, 2006 8:22 AM > To: vchkpw@inter7.com > Subject: Re: [vchkpw] Re: Feature for vdelivermail > > Hi Robin, > > Zitat von Robin Bowes <[EMAIL PROTECTED]>: > > > As someone has already replied, maildrop can do this for you. > > This sort of code does not belong in vdelivermail. > > Yeah, > > that mail was too late. I've seen it a few minutes after my > last mail :D. Some other question: Why maildrop doesn't > executes the following > lines: > > <snip> > `maildirmake $HOME/Maildir/.SPAM` > `chown -R vpopmail.vchkpw $HOME/Maildir/.SPAM` </snip> > > Here is my complete mailfilter file: > > <snip> > import EXT > import HOST > import HOME > > HOME=$HOME/$EXT > > if (/^X-Spam-Flag: *YES/) > { > `test -d $HOME/Maildir/.SPAM` > if ($RETURNCODE == 1) > { > `maildirmake $HOME/Maildir/.SPAM` > `chown -R vpopmail.vchkpw $HOME/Maildir/.SPAM` > } > > to "$HOME/Maildir/.SPAM/" > } > > to "$HOME/Maildir/" > </snip> > > Regards > Christoph >