Hello,
i'd like to do this kind of stuff

Code:
zmmailbox
mbox> aa admin@myserver.com password
mbox> sm user@myserver.com
But in a java way.

This is to clean automatically some users folders.

How can i do it?

I first tried

with

Code:
opts = new Options("zimbra.admin.user", AccountBy.name,"zimbra.admin.password", server);
opts.setTargetAccount(username);
opts.setTargetAccountBy(AccountBy.name);
This was done to connect to a zmmailbox... but this don't seem to work..

Thanks for the help

Yannick