Question

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.

Was it helpful?

Solution

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.

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top