X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=blobdiff_plain;f=src%2Fetpan%2Fimap-thread.c;h=4a1f1fad12e1530d156e9d9f8bb4a040dab79712;hp=657719ce3accfe9ab615d4906ed18c3e64d8276d;hb=7ba3588f121d99fb87b167ea194ba9669ea41d1a;hpb=623212907b9df76c3ae89887b4bdb671b04f17b9 diff --git a/src/etpan/imap-thread.c b/src/etpan/imap-thread.c index 657719ce3..4a1f1fad1 100644 --- a/src/etpan/imap-thread.c +++ b/src/etpan/imap-thread.c @@ -1591,7 +1591,8 @@ static void search_run(struct etpan_thread_op * op) struct mailimap_search_key * uid_key = NULL; struct mailimap_search_key * search_type_key = NULL; clist * search_result; - + static const char *charset = NULL; + param = op->param; result = op->result; @@ -1629,6 +1630,7 @@ static void search_run(struct etpan_thread_op * op) search_type_key = imap_search_new(IMAP_SEARCH_CRITERIA_TAG, NULL, RTAG_JUNK, 0); break; case IMAP_SEARCH_TYPE_KEYED: + charset = "UTF-8"; search_type_key = param->key; break; } @@ -1653,7 +1655,7 @@ static void search_run(struct etpan_thread_op * op) } else { mailstream_logger = imap_logger_uid; - r = mailimap_uid_search(param->imap, "UTF-8", key, &search_result); + r = mailimap_uid_search(param->imap, charset, key, &search_result); mailstream_logger = imap_logger_cmd;