Karsten, are you using maildirs or mailboxes? Could you change the lines
at the top of your file like:
I use Maildirs (Courier-IMAP) and you were right, my /etc/maildroprc
contained the line DEFAULT="$HOME/Maildir"
After changing that to DEFAULT="$HOME/Maildir/" the filter for my testuser
started working.
But on my own account it does not work, and that seems strange.
My .mailfilter:
logfile "$HOME/Maildir/maildrop.log"
log "default=$DEFAULT"
if (/^From:.*be...@domeus.de/:h)
{
log "rule1: $MATCH"
to "Maildir/.MyServer.ColdMedia"
}
if (/^From:.*@amazon.de/:h)
{
log "rule2: $MATCH"
to "Maildir/.Amazon"
}
and my logfile:
default=/home/k_iwen/Maildir/
rule1:
Date: Tue Jan 28 19:01:49 2003
From: "Test User" <te...@user.de>
Subj: Testnachricht fuer KI
File: Maildir/.MyServer.ColdMedia (2572)
The (working) filter for my Testuser is now:
logfile "$DEFAULT/maildrop.log"
log "default=$DEFAULT"
if (/^Subject:.*Antivir/:h)
{
log "rule1: $MATCH"
to "Maildir/.Virus"
}
if (/^Subject:.*cron/:h)
{
log "rule2: $MATCH"
to "Maildir/.cron"
}
And I don't see any differences there.
best regards, Karsten