I have now tested one scenario.
Any comments on this? Are there another preferred way to accomplish this or is this "da shit" ?
1) Generate a preauth key for the mail domain.
(
Preauth - Zimbra :: Wiki)
2) Use this to generate a access URL, ie
https://mail.example.com/service/preauth?account=someuser@example.com&by=name× tamp=1217213685000&expires=0&preauth=186421eba7296 126ffc9c9212932af58ad25b245
3) Use this URL to get cookie: ZM_AUTH_TOKEN
4) Use this ZM_AUTH_TOKEN in REST access to get inbox (and possible calender stuff)
ZCS 6.0:Zimbra REST API Reference - Zimbra :: Wiki
Example, get unread mail:
https://mail.example.com/home/someuser@example.com/inbox?fmt=xml&auth=qp&zauthtoken=$ZM_AUTH_TOKEN&qu ery=is:unread