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)
If you're using maildirs, the destination in your 'to' statements should
end with a trailing slash:
logfile "$HOME/Maildir/maildrop.log"
if (/^From:.*be...@domeus.de/:h)
{
log "rule1: $MATCH"
to "Maildir/.MyServer.ColdMedia/"
}
if (/^From:.*@amazon.de/:h)
{
log "rule2: $MATCH"
to "Maildir/.Amazon/"
}
Otherwise it will attempt to deliver to an mbox file called
'.MyServer.ColdMedia', not to the maildir '.MyServer.ColdMedia/'. Since
the directory exists, I expect maildrop wouldn't be able to create an
mobox file with the same name.
Paul