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"