[Dovecot] [stava at telcotec.se: [stava: antispam problem]]

Lars Stavholm stava at telcotec.se
Sun Oct 24 07:19:12 EEST 2010


On Sun, Oct 24, 2010 at 07:10:53AM +0300, Eugene Paskevich wrote:
> 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.

93f413f9204f+ tip

> > 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.

That would explain it then:)

> 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.

Thank you, I'll try that.
/L

> -- 
> Eugene Paskevich             |   *==)-----------   |     Plug me into
> eugene at 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;



More information about the dovecot mailing list