command_register("DELETEACL", cmd_deleteacl, 0);
imap_acl_module = module;
- next_hook_client_created = hook_client_created;
- hook_client_created = imap_acl_client_created;
+ next_hook_client_created =
+ imap_client_created_hook_set(imap_acl_client_created);
}
void imap_acl_plugin_deinit(void)
command_unregister("DELETEACL");
command_unregister("LISTRIGHTS");
- hook_client_created = next_hook_client_created;
+ imap_client_created_hook_set(next_hook_client_created);
}
const char *imap_acl_plugin_dependencies[] = { "acl", NULL };
command_register("SETQUOTA", cmd_setquota, 0);
imap_quota_module = module;
- next_hook_client_created = hook_client_created;
- hook_client_created = imap_quota_client_created;
+ next_hook_client_created =
+ imap_client_created_hook_set(imap_quota_client_created);
}
void imap_quota_plugin_deinit(void)
command_unregister("GETQUOTA");
command_unregister("SETQUOTA");
- hook_client_created = next_hook_client_created;
+ imap_client_created_hook_set(next_hook_client_created);
}
const char *imap_quota_plugin_dependencies[] = { "quota", NULL };
command_register("COMPRESS", cmd_compress, 0);
imap_zlib_module = module;
- next_hook_client_created = hook_client_created;
- hook_client_created = imap_zlib_client_created;
+ next_hook_client_created =
+ imap_client_created_hook_set(imap_zlib_client_created);
}
void imap_zlib_plugin_deinit(void)
{
command_unregister("COMPRESS");
- hook_client_created = next_hook_client_created;
+ imap_client_created_hook_set(next_hook_client_created);
}
const char *imap_zlib_plugin_dependencies[] = { "zlib", NULL };