static void imap_acl_client_created(struct client **client)
{
- if (mail_user_is_plugin_loaded((*client)->user, imap_acl_module))
- str_append((*client)->capability_string, " ACL RIGHTS=texk");
+ if (mail_user_is_plugin_loaded((*client)->user, imap_acl_module)) {
+ client_add_capability(*client, "ACL");
+ client_add_capability(*client, "RIGHTS=texk");
+ }
if (next_hook_client_created != NULL)
next_hook_client_created(client);
static void imap_quota_client_created(struct client **client)
{
if (mail_user_is_plugin_loaded((*client)->user, imap_quota_module))
- str_append((*client)->capability_string, " QUOTA");
+ client_add_capability(*client, "QUOTA");
if (next_hook_client_created != NULL)
next_hook_client_created(client);
zclient->next_state_export = (*clientp)->v.state_export;
(*clientp)->v.state_export = imap_zlib_state_export;
- str_append(client->capability_string, " COMPRESS=DEFLATE");
+ client_add_capability(*clientp, "COMPRESS=DEFLATE");
}
if (next_hook_client_created != NULL)