Zend IMAP搜索和过滤器 [英] Zend IMAP search and filters

查看:65
本文介绍了Zend IMAP搜索和过滤器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用gmail等过滤器进行搜索.就像获取带有特定标签的电子邮件列表或从特定电子邮件地址获取邮件列表一样.我无法在文档中找到它.

How do i make search using filters like in gmail. Like getting list of email with specific labels or list of mails from a specific email address. I couldn't able to find it in documentations.

注意:我使用oAuth进行身份验证.我希望这与搜索无关.

Note:I use oAuth for authentication. I hope this has nothing to do with search.

推荐答案

Gmail上的标签实际上是文件夹(从IMAP角度来看),因此要获取所有带有标签的电子邮件,您只需在以下文件夹中列出电子邮件即可这个名字.

The labels on Gmail are in fact (from IMAP point of view) folders, so to get all emails with label you can just list e-mails in folder of this name.

要进行搜索,您可以使用未公开说明"的函数search()(请参见Zend/Mail/Imap/Protocol.php),但请参见方法注释:This method is currently marked as internal as the API might change and is not safe if you don't take precautions.因此,您宁愿使用PHP自己的

To search you could use "undocumented" function 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. So you may rather use PHP's own imap_search() function.

另请参见Zend Framework功能请求 ZF-8858 .

See also Zend Framework feature request ZF-8858.

这篇关于Zend IMAP搜索和过滤器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆