rcavezza 0 Newbie Poster

I'm building an email application that filters emails with certain keywords out of my gmail inbox.

Right now, it's working by running a cron job every five minutes and this is killing my server load. I'd like to know if there's a way to add a filter to IMAP so that it will automatically filter out emails from certain senders or with certain keywords in them.

With the cron jobs, it's not working all the time because if I don't catch the emails and remove them before it gets pushed to my phone, there's no way to delete the emails from my blackberry using IMAP (it's a one way push email).

I want to set up a filter directly in imap in the same manner that GMAIL filters work.

Any help would be appreciated.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.