return TRUE;
}
+ if (client->compress_handler != NULL) {
+ client_send_tagline(cmd, t_strdup_printf(
+ "NO [COMPRESSIONACTIVE] COMPRESSION=%s already enabled.",
+ t_str_ucase(client->compress_handler->name)));
+ return TRUE;
+ }
int ret = compression_lookup_handler(t_str_lcase(mechanism), &handler);
if (ret <= 0) {
const char * tagline =
}
client_update_imap_parser_streams(client);
+ client->compress_handler = handler;
return TRUE;
}
/* NOTIFY extension */
struct imap_notify_context *notify_ctx;
uint32_t notify_uidnext;
+ /* COMPRESS extension */
+ const struct compression_handler *compress_handler;
/* client input/output is locked by this command */
struct client_command_context *input_lock;