return TRUE;
}
if (imap_feature_lookup(str, &feature_idx)) {
- (void)client_enable(cmd->client, feature_idx);
+ client_enable(cmd->client, feature_idx);
str_append_c(reply, ' ');
str_append(reply, t_str_ucase(str));
}
if (ctx->condstore) {
/* Enable while no mailbox is opened to avoid sending
HIGHESTMODSEQ for previously opened mailbox */
- (void)client_enable(client, imap_feature_condstore);
+ client_enable(client, imap_feature_condstore);
}
ret = select_open(ctx, mailbox, readonly);
"Invalid modseq");
return FALSE;
}
- (void)client_enable(ctx->cmd->client,
- imap_feature_condstore);
+ client_enable(ctx->cmd->client, imap_feature_condstore);
} else {
client_send_command_error(ctx->cmd,
"Unknown STORE modifier");
return TRUE;
}
-int client_enable(struct client *client, unsigned int feature_idx)
+void client_enable(struct client *client, unsigned int feature_idx)
{
enum mailbox_feature features = feature_idx;
struct mailbox_status status;
features |= imap_feature_condstore;
if ((client->enabled_features & features) == features)
- return 0;
+ return;
client->enabled_features |= features;
if (client->mailbox == NULL)
- return 0;
+ return;
ret = mailbox_enable(client->mailbox, features);
if (ret == 0 && !had_condstore &&
client_send_untagged_storage_error(client,
mailbox_get_storage(client->mailbox));
}
- return ret;
}
bool client_has_enabled(struct client *client, unsigned int feature_idx)
have to wait for an existing SEARCH SAVE to finish. */
bool client_handle_search_save_ambiguity(struct client_command_context *cmd);
-int client_enable(struct client *client, unsigned int feature_idx);
+void client_enable(struct client *client, unsigned int feature_idx);
/* Returns TRUE if the given feature is enabled */
bool client_has_enabled(struct client *client, unsigned int feature_idx);
/* Returns mailbox features that are currently enabled. */
ctx->error = "FETCH MODSEQ can't be used with non-permanent modseqs";
return FALSE;
}
- (void)client_enable(ctx->fetch_ctx->client, imap_feature_condstore);
+ client_enable(ctx->fetch_ctx->client, imap_feature_condstore);
imap_fetch_add_handler(ctx, IMAP_FETCH_HANDLER_FLAG_BUFFERED,
NULL, fetch_modseq, NULL);
return TRUE;
if (ctx->have_modseqs) {
ctx->return_options |= SEARCH_RETURN_MODSEQ;
- (void)client_enable(cmd->client, imap_feature_condstore);
+ client_enable(cmd->client, imap_feature_condstore);
}
ctx->box = cmd->client->mailbox;
}
if ((items->status & STATUS_HIGHESTMODSEQ) != 0)
- (void)client_enable(client, imap_feature_condstore);
+ client_enable(client, imap_feature_condstore);
ret = mailbox_get_status(box, items->status, &result_r->status);
if (items->metadata != 0 && ret == 0) {