API to create a filter for free google and gmail users


Is there a way to create a filter in gmail programatically for gmail users as well as for free google app accounts?

It seems that the e-mail settings API is only applicable for Google Apps for Business or Education accounts (http://support.google.com/a/bin/answer.py?hl=en&answer=60228).


I would like to know whether anybody knows the answer, because a good gmail filtering app is sorely needed for android users!

I looked everywhere and finally found this: https://market.android.com/details?id=com.digitalchemy.springclean.gmail&rdid=com.digitalchemy.springclean.gmail&rdot=1#?enroll=yAb5pZ2MYWwmoft_rED3OYt6t0U%3D&purchaseButton=Dw2xBTSDPLCsKHcCnowBY0VcYUU%3D&addInstrument=NyJt6qfLAWzk-RVX01VtYp73FRg%3D

I don't like that it costs 3 dollars and uses 7megs of space. The source is closed, and I'm trying to guess how it does what it does.

This is the most recent link I've found as I try to make my own filtering app and service: http://googlecode.blogspot.com/2010/03/oauth-access-to-imapsmtp-in-gmail.html