[Dovecot] Plugin question
tss at iki.fi
Mon Feb 8 17:45:23 EET 2010
On 8.2.2010, at 17.40, Valery Gorbunov wrote:
> I am developing plugin for Dovecot. And I needs for read some configuration file at startup
> and store configuration in application wide variable. As I see the plugin_init() method calls
> multiple times and allocates plugin's variables each time. Could you suggest better way to
> store variable in application context.
plugin_init() is called once for every process (and a separate process is created for each connection). If you want to share state between multiple processes, you need to use files or something else.
More information about the dovecot