-
Notifications
You must be signed in to change notification settings - Fork 86
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
search搜索失败 #552
Comments
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 ? |
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", "[email protected]"]) That is, not as a single string. |
Same issue happened to me, FROM and SUBJECT item did not work in my code, here is my env: python==3.9.21 64bit
imapclient==3.0.1 mail info auth = {"username": "", "password": ""}
cfgs = {
'host': 'imap.vip.sina.com',
'port': 993,
'ssl': True
}
imap = imapclient.IMAPClient(**cfgs)
imap.login(**auth)
_ = imap.select_folder('INBOX', readonly=True)
imap.capabilities() # output: (b'IMAP4REV1', b'ID', b'IDLE', b'UIDPLUS') I'd try many types of criteries like: uids = imap.search(['FROM', '[email protected]'])
uids = imap.search(['FROM', '"[email protected]"'])
uids = imap.search(['FROM "[email protected]"'])
uids = imap.search(['SUBJECT', 'ORDER'])
uids = imap.search('SUBJECT "ORDER"') and always got the exception like : can you tell the reason about this? it would be very helpful if the problem can be fixed, thank you. |
搜索qq邮箱或者网易163邮箱时 用FROM搜索失效,qq邮箱使用search FROM不论搜索什么都会返回全部 网易163会直接报错
The text was updated successfully, but these errors were encountered: