Displaying 1 result from an estimated 1 matches for "lib20_foo_plugin".
2014 Aug 30
1
Need help to compile and install a minimal dovecot imap plugin
...{
i_info(?deinit?);
imap_client_created_hook_set(next_hook_client_created);
}
const char foo_plugin_binary_dependency[] = "imap?;
On Fedora 20, with the dovecot and dovecot-devel packages installed, I compile this with:
cc -Wall -shared -fPIC -DHAVE_CONFIG_H -I/usr/include/dovecot -o lib20_foo_plugin.so foo-plugin.c
And then install with:
sudo cp lib20_foo_plugin.so /usr/lib64/dovecot/
(I also have mail_plugin_dir = /usr/lib64/dovecot in 10-mail.conf)
I enable this plugin in /etc/dovecot/conf.d/20-imap.conf with:
protocol imap {
mail_plugins = $mail_plugins foo
}
But ? nothing happ...