[Dovecot] Plugin execution order and Sieve

Timo Sirainen tss at iki.fi
Mon Sep 6 17:32:12 EEST 2010


On Mon, 2010-09-06 at 16:10 +0200, Charly wrote:
> dovecot-2-0-pigeonhole-d51650c8af85/src/plugins/lda-sieve/lda-sieve-plugin.c    
> 2010-09-02 11:48:22.000000000 +0200
> @@ -775,7 +775,8 @@
> 
>       } T_END;
> 
> -    return ret;
> +    //return ret;
> +    return next_deliver_mail(mdctx,storage_r);

I think that's a bug.

> How can I call my plugin before Sieve and do I need to patch Pigeonhole 
> Sieve ?

It ordering is based on the filename. Note that Pigeonhole plugin is
called lib90_sieve_plugin. Because of the ugly hooking mechanism you
probably need to call yours after Pigeonhole, so try naming yours
lib91_mysieve_plugin.



More information about the dovecot mailing list