开发者

Searching IMAP inbox for messages from a specific sender and use of wild cards?

开发者 https://www.devze.com 2023-04-12 06:29 出处:网络
Is it possible to use wildcards in searching for a specific sender on IMAP folder?开发者_StackOverflow中文版

Is it possible to use wildcards in searching for a specific sender on IMAP folder?

开发者_StackOverflow中文版
typ, data = M.SEARCH(None, 'from','"security@website*"')


IMAP RFC 3501 6.4.4:

In all search keys that use strings, a message matches the key if the string is a substring of the field. The matching is case-insensitive.

So you need to search without * and you should almost similar result. (you get security@website ...)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号