View Single Post
  #8  
Old 16th August 2009, 21:32
CLC CLC is offline
Junior Member
 
Join Date: Aug 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've entered the following code to /var/vmail/.mailfilter just above the user maildrop include:

Code:
# Move SPAM to trash
`test -e /var/vmail/$HOST/$USER/.Trash`
if ( $RETURNCODE != 0 )
{
  `maildirmake -f Trash /var/vmail/$HOST/$USER`
  `chmod -R 0700 /var/vmail/$HOST/$USER/.Trash`
  `echo INBOX.Trash >> /var/vmail/$HOST/$USER/courierimapsubscribed`
}
if (/^Subject:.*\*\*SPAM\*\*/:h)
{
to /var/vmail/$HOST/$USER/.Trash/
}
Reply With Quote