I'm beginning to wonder if there's something wrong with my entire
.mailfilter. It seems that anything not delivered to the default address
(./.maildir) is being requeued regardless of what happens to it. Am I
doing something really stupid?

Here is my .courier file:
|/usr/bin/maildrop

Here is my .mailfilter as it currently stands:

---------------------------------------------------------------------
# This is the mailfilter file to be used by maildrop on delivery
# Set up logging
logfile "/home/matt/maildroplog.txt"

# Drop stuff from credit card into financial folder
if( /^To: *[email protected]*/ )
{
   log "MCS - Delivering to Financial"
   to "./.maildir/.General.Financial"
}
# For everyting else: Run through SpamAssassin
exception {
   xfilter "/usr/bin/spamc -u matt"
}
# If we get a spam level of 5 or more, just bin it
if ( /^X-Spam-Level: *\*\*\*\*\*/ )
{
   log "MCS - Identified SPAM for immediate delete"
   # Silently drop the message content
   #to "|/home/matt/data/Development/MailScripts/autotrash.py"
   #to "|/home/matt/tonull"
   #EXITCODE=99
   #exit
   to "./.maildir/.Trash"
}
# If we get less extreme spam, file in spam folder
if ( /^X-Spam-Flag: *Yes/ )
{
   to "./.maildir/.Spam"
}
---------------------------------------------------------------------

Currently spam is being sent to my Trash folder, but the mails are still
showing up in the mail queue. I have no idea what is going on here, but
I hope I've just done something dumb and easily fixed...


Cheers,

Matt.



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to