imapclient
imapclient copied to clipboard
subject search chinese not support?
我使用IMAPClient版本是3.0.0,我使用下面按中文搜索主题时不生效且底层会报错。
client.search(['SUBJECT', '每日信用管家'], charset='UTF-8')
I also encountered the same problem
python3.8/site-packages/imapclient/imapclient.py
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 capabilities method after login. That will ensure the cached capabilities are set.
I will work on a proper fix.