mjs / imapclient

An easy-to-use, Pythonic and complete IMAP client library
https://imapclient.readthedocs.io/
Other
520 stars 86 forks source link

search搜索失败 #552

Open 18534516725 opened 1 year ago

18534516725 commented 1 year ago

搜索qq邮箱或者网易163邮箱时 用FROM搜索失效,qq邮箱使用search FROM不论搜索什么都会返回全部 网易163会直接报错

18534516725 commented 1 year ago

image

mjs commented 1 year ago

Do you see an error from the server?

Could you try enabling logging as described here: https://imapclient.readthedocs.io/en/master/concepts.html#logging ? That will let us see the protocol details which might show what's going on.

mjs commented 1 year ago

Also, I can't tell from your screenshot but make sure you're calling search with the criteria as a list like this:

messages = server.search(["FROM", "someone@qq.com"])

That is, not as a single string.