1 message in net.sourceforge.lists.courier-maildrop[maildropl] Filter if statement help ...
FromSent OnAttachments
SamFeb 20, 2004 8:28 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:[maildropl] Filter if statement help -sorry last mail had the wrong maildroprc pasted inActions...
From:Sam (aw@nzdesigns.co.nz)
Date:Feb 20, 2004 8:28:43 pm
List:net.sourceforge.lists.courier-maildrop

Gentle please, I am a newbee

I have set up the following in maildroprc I am having a bit of trouble getting it to work as planed. My first error that was reported was a syntax error on the line with the "else" statement and I had to change it to "Else" to remove the syntax error. All samples of maildrop & mailfilterrc files I find on Google have it in lower case but mine wont work like that.

However that aside, I am haveing trouble with the "if" statement all my mail is delivered to "!mailservice" even if the Spam Flag does not exist. My theory is that if Spam flag does not exist it should go onto the else statment.

I am using Rh9 and calling maildrop with the -d user option

Can someone please point this dummy in the right direction Thanks

#

# Set the default mailbox.

DEFAULT="$HOME/Maildir"

LOGFILE="/tmp/drop.log"

# Set the default shell.

SHELL="/bin/bash"

if ( $SIZE < 26144 )

{

exception {

xfilter "/usr/bin/spamc -f"

}

}

if ( /^X-Spam-Flag: *YES/ )

{

to "!mailservice"

}

Else

{

xfilter "/usr/local/anomy/bin/sanitizer.pl /usr/local/anomy/sanitizer.cfg 2>>/tmp/mailfilter.log | cat"

to "Maildir"

to "Maildir"