void push_notify_registration_plugin_init (struct module *module)
{
	command_register("XAPPLEPUSHSERVICE", cmd_x_apple_push_service, 0);

	push_notify_registration_module = module;
	next_hook_client_created = imap_client_created_hook_set(push_notify_registration_client_created);
}
void imap_xaps_plugin_init(struct module *module)
{
  command_register("XAPPLEPUSHSERVICE", cmd_xapplepushservice, 0);

  imap_xaps_module = module;
  next_hook_client_created = imap_client_created_hook_set(xaps_client_created);
}
void imap_quota_plugin_deinit(void)
{
	command_unregister("GETQUOTAROOT");
	command_unregister("GETQUOTA");
	command_unregister("SETQUOTA");

	imap_client_created_hook_set(next_hook_client_created);
}
void imap_quota_plugin_init(struct module *module)
{
	command_register("GETQUOTAROOT", cmd_getquotaroot, 0);
	command_register("GETQUOTA", cmd_getquota, 0);
	command_register("SETQUOTA", cmd_setquota, 0);

	imap_quota_module = module;
	next_hook_client_created =
		imap_client_created_hook_set(imap_quota_client_created);
}
void push_notify_registration_plugin_deinit (void)
{
	command_unregister("XAPPLEPUSHSERVICE");

	imap_client_created_hook_set(next_hook_client_created);
}
void imap_xaps_plugin_deinit(void)
{
  imap_client_created_hook_set(next_hook_client_created);

  command_unregister("XAPPLEPUSHSERVICE");
}