On Mon, 27 Jan 2003, Karsten Iwen wrote:
I have. my new filter for testing looks now like this:
logfile "$DEFAULT/maildrop.log"
if (/^Subject:.*Antivir/:h)
{
log "rule1: $MATCH"
to "$DEFAULT/.Virus"
}
if (/^Subject:.*cron/:h)
{
log "rule2: $MATCH"
to "$DEFAULT/.cron"
}
but it does also not work. [...]
the message is in the Virus-folder.
So maildrop doesn't know your default Mailbox. What is your default
mailbox?
Hmmm... From the logs posted previously, $DEFAULT/.Virus in .mailfilter
logged as delivery to /home/support/Maildir/.Virus, so that might imply
$DEFAULT contains '/home/support/Maildir' (no trailing slash). Could it
be that maildrop thinks $DEFAULT refers to a mailbox file (since the
trailing slash is absent) but Maildir is actually a directory?
If this were a Mandrake-style Postfix/maildrop/courier-imap|pop
installation, then it would be maildir-based... And $DEFAULT would have
a trailing slash.
Karsten, are you using maildirs or mailboxes? Could you change the lines
at the top of your file like:
logfile "$HOME/Maildir/maildrop.log"
log "default=$DEFAULT"
And tell us what is logged? If you could include the output of 'ls -al
~/Maildir' that'd be useful, too.
I would also suggest that using $DEFAULT as your path prefix
$DEFAULT should be "The default mailbox to deliver the
message to" - not your path prefix!!!
Ack! You're right, sorry for giving bad advice. Happens to work on my
system because I'm using maildirs, but a mailbox-based installation
would barf...
Paul