static int client_command_execute(struct imap_client *client, const char *cmd,
struct imap_arg *args)
{
- cmd = str_ucase(t_strdup_noconst(cmd));
+ cmd = t_str_ucase(cmd);
if (strcmp(cmd, "LOGIN") == 0)
return cmd_login(client, args);
if (strcmp(cmd, "AUTHENTICATE") == 0)
else if (client->cmd_name == NULL)
error = t_strconcat("BAD Error in IMAP command: ", msg, NULL);
else {
- cmd = str_ucase(t_strdup_noconst(client->cmd_name));
+ cmd = t_str_ucase(client->cmd_name);
error = t_strconcat("BAD Error in IMAP command ",
cmd, ": ", msg, NULL);
}
if (ctx->common_mask & MAIL_SORT_CC) {
str = get_first_mailbox(mail, "cc");
if (str != NULL)
- str = str_ucase(t_strdup_noconst(str));
+ str = t_str_ucase(str);
if (null_strcmp(str, ctx->last_cc) != 0) {
i_free(ctx->last_cc);
if (ctx->common_mask & MAIL_SORT_FROM) {
str = get_first_mailbox(mail, "from");
if (str != NULL)
- str = str_ucase(t_strdup_noconst(str));
+ str = t_str_ucase(str);
if (null_strcmp(str, ctx->last_from) != 0) {
i_free(ctx->last_from);
if (ctx->common_mask & MAIL_SORT_TO) {
str = get_first_mailbox(mail, "to");
if (str != NULL)
- str = str_ucase(t_strdup_noconst(str));
+ str = t_str_ucase(str);
if (null_strcmp(str, ctx->last_to) != 0) {
i_free(ctx->last_to);
else {
str = get_first_mailbox(mail, "cc");
if (str != NULL)
- str = str_ucase(t_strdup_noconst(str));
+ str = t_str_ucase(str);
}
str = string_table_get(ctx, str);
else {
str = get_first_mailbox(mail, "from");
if (str != NULL)
- str = str_ucase(t_strdup_noconst(str));
+ str = t_str_ucase(str);
}
str = string_table_get(ctx, str);
else {
str = get_first_mailbox(mail, "to");
if (str != NULL)
- str = str_ucase(t_strdup_noconst(str));
+ str = t_str_ucase(str);
}
str = string_table_get(ctx, str);
}
if (str != NULL)
- str = str_ucase(t_strdup_noconst(str));
+ str = t_str_ucase(str);
return str;
}
tab[1].value = t_strcut(user, '@');
tab[2].value = strchr(user, '@');
if (tab[2].value != NULL) tab[2].value++;
- tab[3].value = str_ucase(t_strdup_noconst(process_names[process_type]));
+ tab[3].value = t_str_ucase(process_names[process_type]);
tab[4].value = home;
return tab;
static int client_command_execute(struct pop3_client *client, const char *cmd,
const char *args)
{
- cmd = str_ucase(t_strdup_noconst(cmd));
+ cmd = t_str_ucase(cmd);
if (strcmp(cmd, "CAPA") == 0)
return cmd_capa(client, args);
if (strcmp(cmd, "USER") == 0)