Zend IMAP Search and Filters

How to do a search using filters, for example, in gmail. How to get a list of letters with specific labels or a list of letters from a specific email address. I could not find it in the documents.

Note. I use oAuth for authentication. Hope this has nothing to do with the search.

+4
source share
1 answer

Shortcuts in Gmail are actually (from an IMAP perspective), so to get all emails with a tag, you can simply list the emails in a folder with that name.

You can use the “undocumented” search() function to search() see Zend/Mail/Imap/Protocol.php ), but see the method comment: This method is currently marked as internal as the API might change and is not safe if you don't take precautions. Therefore, you can rather use native PHP imap_search () .

See also the Zend Framework ZF-8858 feature request.

+3
source

Source: https://habr.com/ru/post/1391427/


All Articles