6 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] mail drop filter not ...
FromSent OnAttachments
Pamela RockSep 14, 2006 11:07 am 
Sam VarshavchikSep 14, 2006 3:22 pm 
Pamela RockSep 14, 2006 7:16 pm 
Devin RubiaSep 15, 2006 6:10 am 
Pamela RockSep 15, 2006 10:14 am 
Tony EarnshawSep 15, 2006 6:25 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] mail drop filter not working...Actions...
From:Devin Rubia (dev@thezone.net)
Date:Sep 15, 2006 6:10:33 am
List:net.sourceforge.lists.courier-maildrop

On Thu, Sep 14, 2006 at 11:08:04AM -0700, Pamela Rock wrote:

I've setup maildrop with sendmail and it appears to be working with a few exceptions. I am not able to get my filtering rules to work. Note however that email is being delivered to the maildir. [SNIP] my /etc/maildroprc file looks like this....

SHELL="/bin/bash" SENDMAIL="/usr/lib/sendmail" MAILDROP="/usr/local/bin/maildrop" logfile "/var/log/maildrop" VERBOSE="4"

if (/^Subject:.*[:mailtestnow:]/ \ { /dev/null }

When an email with the subject mailtestnow shows up, it is delivered to the user. Is the syntax totally wrong, why can I not filter? Please help.

What's with "[:mailtestnow:]"? It may not mean what you think it means.

Maybe you meant:

if (/^Subject:.*mailtestnow/)

Also note that you had a typo above. You had a line continuation "\" instead of a closing parenthesis ")".

Also, you had "/dev/null/" instead of "to /dev/null". Therein, however, lies one of my pet peeves. Try this:

if (/^Subject:.*mailtestnow/) { log "Found mailtestnow. Dropping." EXITCODE=0 exit }

It's more efficient.