I wanted to write a Inbox listener for my Zimbra account which calls a java function (webservice/ejb) whenever new mails arrive. This function does some business logic.

I did not find anything in the forum.

Hence i wanted to know if there is some callback/notification mechanism present already

Can you please point me to the documentation and source code for the same.

If not can you suggest some other alternative