“ ImapClient”搜索方法出现问题

时间:2019-06-11 05:03:26

标签: search imapclient

我正在尝试使用以下查询从我的gmail收件箱中提取邮件:

client.search(["(UNSEEN)", "FROM", "support@abcd.com", "SUBJECT", "I need help"])

我遇到以下错误:

criteria='"%s"' % criteria if not isinstance(criteria, list) else criteria
imapclient.exceptions.InvalidCriteriaError: b'Could not parse command'

This error may have been caused by a syntax error in the criteria: ['(UNSEEN)', 'FROM', 'support@abcd.com', 'SUBJECT', 'I need help']

查询正确吗?

0 个答案:

没有答案