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?
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!!!
Try:
logfile "Maildir/maildrop.log"
if (/^Subject:.*Antivir/:h)
{
log "rule1: $MATCH"
to "Maildir/.Virus"
}
if (/^Subject:.*cron/:h)
{
log "rule2: $MATCH"
to "Maildir/.cron"
}
to "Maildir/your-default-mailbox"
:h? I don't find that in the maildrop documentation. But of course
I'll do it from now on ... But what does it make?
man maildropfilter
/PATTERN OPTIONS
"Match this pattern against the message header."
Greetings, Mark