On Sat, Oct 23, 2010 at 01:33:58PM +0200, Lars Stavholm wrote:
> Hi All,
> 
> I've built the dovecot-antispam-plugin from hg.dovecot.org and installed it.

Which version is that? I mean the mercurial commit ID as returned by 'hg id'
command.

> I've turned on debugging with "mail_debug = yes" in dovecot.conf and restarted
> dovecot. However, the antispam plugin module gets loaded by dovecot, but then
> nothing, i.e. when moving mail from Inbox to Spam and vice versa, I see 
> nothing.

The plugin code has almost no debugging at the moment.

My first guess would be that folders aren't recognized as you supposed
them to be. Try applying the attached patch which should show how
exactly the folders are treated.

-- 
Eugene Paskevich             |   *==)-----------   |     Plug me into
eug...@raptor.kiev.ua        |   -----------(==*   |      The Matrix
diff -r 0cda886fec90 src/mailbox.c
--- a/src/mailbox.c	Sun Oct 24 05:17:20 2010 +0300
+++ b/src/mailbox.c	Sun Oct 24 07:07:20 2010 +0300
@@ -286,6 +286,8 @@
     asmb->module_ctx.super = box->v;
 
     asmb->box_class = antispam_mailbox_classify(box);
+    i_debug("mailbox '%s' was recognized as %i", mailbox_get_name(box),
+	    asmb->box_class);
 
     box->v.copy = antispam_copy;
     box->v.save_begin = antispam_save_begin;

Reply via email to