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:Paul Chambers (mail@lists.bod.org)
Date:Jan 28, 2003 9:07:50 am
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?

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