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

Reply via email to