I'll upload the unit tests on the weekend.
It's very simple to use actually, for example:
Code:
import inca.api.Zimbra;
import inca.api.events.
var zimbra:Zimbra = new Zimbra();
zimbra.secureConnection = true; //https
zimbra.server = "mail.domain.com";
zimbra.username = "username@domain.com";
zimbra.password = "XXX";
zimbra.addEventListener(ZimbraEvent.LOGGED_IN, onLoggedIn, false, 0, true);
function onLoggedIn(e:ZimbraEvent):void{
trace ("LOGGED IN!");
}
zimbra.login(); Thats the basic thing. Now, lets try an "inbox" search.
Change the "onLoggedIn" event handler:
Code:
function onLoggedIn(e:ZimbraEvent):void{
(e.target as Zimbra).addEventListener(ZimbraSearchEvent.COMPLETE, onSearchComplete, false, 0, true);
(e.target as Zimbra).search("in:inbox");
}
function onSearchComplete(e:ZimbraSearchEvent):void{
// get all email returned by the search
trace ((e.data as ZimbraSearchResponse).collection);
} I'll post a new example tomorrow.
Thanks for using it
Cheers!