search for: imap_client_created_hook_set

Displaying 1 result from an estimated 1 matches for "imap_client_created_hook_set".

2014 Aug 30
1
Need help to compile and install a minimal dovecot imap plugin
...ct client **client) { str_append((*client)->capability_string, " XFOO"); if (next_hook_client_created != NULL) { next_hook_client_created(client); } } void foo_plugin_init(struct module *module) { i_info(?init?); foo_module = module; next_hook_client_created = imap_client_created_hook_set(foo_client_created); } void foo_plugin_deinit(void) { 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 -sh...