Hello,
From: Timo Sirainen tss@iki.fi Subject: Re: [Dovecot] Japanese Search Date: Thu, 06 Jan 2005 23:39:49 +0200
On Fri, 2004-12-24 at 15:26 +0900, Kazuo Moriwaka wrote:
2 calls of charset_to_ucase_utf8_string() is caused by commands like following: a001 search charset ***** body "*****"
When imapd receive it, it calls message_body_search()
Call flow is look like:
message_body_search() +-> message_body_search_init() | +-> charset_to_ucase_utf8_string() <-- 1st (key is 'charset') +-> message_bodd_search_ctx() +-> message_search_header() +-> message_header_search_init() +-> charset_to_ucase_utf8_string() <-- 2nd (key is utf-8)
This happens only when it's searching MIME part headers, so it shouldn't affect the actual body searching? I did several tests and looks like it all works, except that one. I used this patch:
Thank you very much for your work. My testing maildir have some messages which have some MIME parts. I'm sorry to forget to write it. I tested the patch for my Maildir and some Japanese search test cases. It works well.
thanks,
Kazuo Moriwaka moriwaka@valinux.co.jp