如何将电子邮件过滤器添加到IMAP电子邮件帐户? [英] How do you add an email filter to an IMAP email account?

查看:153
本文介绍了如何将电子邮件过滤器添加到IMAP电子邮件帐户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用PHP(特别是Zend_mail_storage_imap).几天前,我构建了电子邮件产品的第一个迭代.基本上,我使用zend_mail和imap电子邮件帐户来标记和过滤大量电子邮件.问题是我当前每五分钟搜索一次电子邮件地址,以查看是否收到了新电子邮件.我想通过在IMAP本身中放置一个过滤器(类似于GMAIL过滤器)来更改此设置.是否可以直接在IMAP中进行设置?如果没有,那么下一个最佳解决方案是什么?

I'm using PHP (zend_mail_storage_imap specifically). I built the first iteration of an email product a few days ago. Basically, I flag and filter a number of emails using zend_mail and an imap email account. The problem is that I'm currently searching the email address every five minutes to see if a new email was received. I'd like to change this by placing a filter in IMAP itself - a filter similar to GMAIL filters. Would this be possible to set this up directly in IMAP? If not, what would be the next best solution?

我的主要问题是,尽管我可以过滤电子邮件,但在每隔五分钟将其过滤掉之前,它们仍然被推送"到我的黑莓风暴中.

My main problem is that although I can filter emails, they still get "pushed" to my blackberry storm before they get filtered out every five minutes.

推荐答案

当前有一个有关IMAP扩展的建议,该扩展将允许客户端通过IMAP更新其Sieve规则.但是它仍处于起草阶段,据我所知,仅由Cyrus IMAP服务器实现.因此,通常来说,您可能不走运.

There is currently a proposal for an IMAP extension that would permit clients to update their Sieve rules via IMAP. But it's still in the draft stage and, to my knowledge, has only been implemented by the Cyrus IMAP server. So, in general, you're probably out of luck.

还有一个用于远程管理Sieve脚本的新协议.我不确定它支持的程度如何,您的邮件服务器可能不支持它.我也不知道有什么流行的PHP客户端,因此您可能需要尝试一些测试版软件或自己动手.

There's also a new protocol for remotely managing Sieve scripts. I'm not sure how widely supported it is yet, and your mail server may not support it. I'm also not aware of a popular PHP client for it, so you may need to try out some beta software or roll your own.

这篇关于如何将电子邮件过滤器添加到IMAP电子邮件帐户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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