13 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Filters dont work
FromSent OnAttachments
Karsten IwenJan 26, 2003 11:26 am 
Paul ChambersJan 26, 2003 1:30 pm 
Karsten IwenJan 27, 2003 11:57 am 
Mark WeinemJan 27, 2003 6:04 pm 
Paul ChambersJan 28, 2003 9:07 am 
Karsten IwenJan 28, 2003 10:15 am 
Paul ChambersJan 28, 2003 1:01 pm 
Mark MayoJan 28, 2003 1:51 pm 
Mark WeinemJan 29, 2003 3:57 pm 
Mark WeinemJan 29, 2003 3:57 pm 
Karsten IwenJan 30, 2003 1:43 am 
Karsten IwenFeb 1, 2003 9:45 am 
Karsten IwenFeb 1, 2003 2:35 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] Filters dont workActions...
From:Mark Weinem (mark@uni-duisburg.de)
Date:Jan 27, 2003 6:04:40 pm
List:net.sourceforge.lists.courier-maildrop

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