[exim] Mark as read with SpamAssassin "spambox" setup

Top Page
Delete this message
Reply to this message
Author: Craig Fairhurst - youds.com
Date:  
To: exim-users
Subject: [exim] Mark as read with SpamAssassin "spambox" setup
To all

I've been searching for a solution to get all messages sent to a
special IMAP "spambox" folder (by SpamAssassin) to be marked as read
I'm using maildir format so maildir_tag is an option, as described
here: http://lists.exim.org/lurker/message/20050329.205558.087e70f0.en.html
This works great with appendfile driver but the spamcheck router sends
to a transport??
I'm quite new to exim so please go easy..any advice appreciated been
trying most of the weekend

Here's what i've got:

begin routers
spamcheck_director:
   driver = accept
   condition = "${if and { \
                         {!def:h_X-Spam-Flag:} \
                         {!eq {$received_protocol}{spam-scanned}} \
                         {!eq {$received_protocol}{local}} \
                         {exists{/home/${lookup{$domain}lsearch{/etc/ 
virtual/domainowners}{$value}}/.spamassassin/user_prefs}} \
                         {<{$message_size}{50k}} \
                 } {1}{0}}"
   retry_use_local_part
   transport = spamcheck
   no_verify


virtual_user:
driver = accept
condition = ${perl{save_virtual_user}}
domains = lsearch;/etc/virtual/domainowners
group = mail
retry_use_local_part
transport = virtual_localdelivery

begin transports
spamcheck:
driver = pipe
batch_max = 100
command = /usr/sbin/exim -oMr spam-scanned -bS
current_directory = "/tmp"
group = mail
home_directory = "/tmp"
log_output
message_prefix =
message_suffix =
return_fail_output
no_return_path_add
transport_filter = /usr/bin/spamc -u ${lookup{$domain}lsearch*{/etc/
virtual/domainowners}{$value}}
use_bsmtp
user = mail
# must use a privileged user to set $received_protocol on the way
back in!

virtual_localdelivery:
driver = appendfile
create_directory
delivery_date_add
directory_mode = 770
envelope_to_add
directory = /home/${lookup{$domain}lsearch*{/etc/virtual/
domainowners}{$value}}/imap/${domain}/${local_part}/Maildir
maildir_format
group = mail
mode = 660
return_path_add
user = "${lookup{$domain}lsearch*{/etc/virtual/domainowners}
{$value}}"
quota = ${if exists{/etc/virtual/${domain}/quota}{$
{lookup{$local_part}lsearch*{/etc/virtual/${domain}/quota}{$value}{0}}}
{0}}
#maildir_tag = :2,F


Many thanks