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

1

5

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

typ, data = M.SEARCH(None, 'from','"security@website*"')
Aloha answered 10/10, 2011 at 23:5 Comment(0)
G
7

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 ...)

Guenon answered 12/10, 2011 at 5:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.