-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
subject search chinese not support? #560
Comments
server.search(['SUBJECT', '中国乡村'], charset='UTF-8') |
This looks like a bug in _send_literal. It should be calling the has_capability method instead of assuming cached_capabilities has been populated. A workaround would be to call the I will work on a proper fix. |
_send_literal was assuming that _cached_capabilites was populated when checking for LITERAL+ but this isn't guaranteed. has_capability is now used to check for LITERAL+. This will populate the capabilities cache if it hasn't been already. Fixes #560
I have upgraded to version 3.0.1, but when searching for Chinese keywords, an error still occurs and I can't find a solution. |
我使用IMAPClient版本是3.0.0,我使用下面按中文搜索主题时不生效且底层会报错。
client.search(['SUBJECT', '每日信用管家'], charset='UTF-8')
The text was updated successfully, but these errors were encountered: