System.out.println(mbox.getConversation("346")); System.out.println(mbox.getMessage("375", false, false, false, null, null));
    public static void main(String args[]) throws ServiceException {        Zimbra.toolSetup();        ZMailbox mbox = getMailbox("user1", "test123", "http://localhost:7070/service/soap");        System.out.println(mbox.getSize());        System.out.println(mbox.getAllTags());        System.out.println(mbox.getUserRoot());        //ZSearchParams sp = new ZSearchParams("StringBuffer");        ZSearchParams sp = new ZSearchParams("in:inbox");                sp.setLimit(20);        sp.setTypes(ZSearchParams.TYPE_CONVERSATION);        System.out.println(mbox.search(sp));        System.out.println(mbox.searchConversation("346", sp));                ZFolder inbox = mbox.getFolderByPath("/inBOX");        System.out.println(inbox);        System.out.println(mbox.getFolderById(inbox.getId()));        mbox.markFolderAsRead(inbox.getId());        mbox.setFolderChecked(inbox.getId(), true);        mbox.setFolderChecked(inbox.getId(), false);                mbox.setFolderColor(inbox.getId(), 1);        ZFolder dork = mbox.createFolder(inbox, "dork",ZFolder.VIEW_MESSAGE);        System.out.println("---------- created dork -----------");                        System.out.println(dork);        System.out.println(inbox);        mbox.deleteFolder(dork.getId());        System.out.println("---------- deleted dork -----------");        System.out.println(inbox);        ZTag zippy = mbox.createTag("zippy", 6);        System.out.println(zippy);        System.out.println(mbox.setTagColor(zippy.getId(), 3));        System.out.println(mbox.markTagAsRead(zippy.getId()));        System.out.println(mbox.renameTag(zippy.getId(), "zippy2"));        System.out.println(mbox.getAllTags());        System.out.println(mbox.deleteTag(zippy.getId()));        System.out.println(mbox.getAllTags());                ZSearchFolder flagged = mbox.createSearchFolder(mbox.getUserRoot(), "is-it-flagged", "is:flagged", null, null);        System.out.println(flagged);        System.out.println(mbox.renameFolder(flagged.getId(), "flagged-and-unread"));                System.out.println(mbox.setFolderColor(flagged.getId(), 6));        System.out.println(mbox.modifySearchFolder(flagged.getId(), "is:flagged is:unread", null, ZSearchParams.SORT_BY_DATE_DESC));                mbox.deleteFolder(flagged.getId());        mbox.noOp();                System.out.println(mbox.flagConversation("346", false, null));                //ZLink user2 = mbox.createMountpoint(mbox.getUserRoot(), "user2", ZFolder.VIEW_APPOINTMENT, OwnerBy.BY_NAME, "user2", SharedItemBy.BY_PATH, "/Calendar");        //System.out.println(user2);                //mbox.deleteItem(user2.getId(), null);    }