[Dovecot] Problem with the command hooks api

Timo Sirainen tss at iki.fi
Sun Feb 24 19:50:22 EET 2013


On 24.2.2013, at 19.29, Tony <dove-tony at yttrium.plus.com> wrote:

> I have been trying to use the command hook api in an experimental plugin I 
> have written. The hook is registered using the command_hook_register function, 
> and for most commands my hook functions get called once as expected.
> But when the client uses one of the "UID" commands (e.g. "UID FETCH" ) the 
> hook functions are executed twice. 
> 
> I am using dovecot version 2.1.12.
> 
> Am I correct in thinking this is a bug?

I don't know if it's bug or "feature", but yeah, it's not ideal behavior. I changed this for v2.2:

http://hg.dovecot.org/dovecot-2.2/rev/558b0b13779d




More information about the dovecot mailing list