{ Mailbox mbox = MailboxManager.getInstance().getMailboxById(mMailboxId); ZimbraQuery zq = new ZimbraQuery(qstr, null, null, mbox, types, sortBy, false, false, 100, true, Mailbox.SearchResultMode.NORMAL);  return zq.execute(); }
{ Mailbox mbox = MailboxManager.getInstance().getMailboxById(mMailboxId); SearchParams params = new SearchParams(); params.setQueryStr(qstr); params.setTypes(types); params.setSortBy(sortBy); params.setOffset(0); params.setLimit(100); params.setPrefetch(true); params.setMode(SearchResultMode.NORMAL); ZimbraQuery zq = new ZimbraQuery(mbox, params, false, false);    return zq.execute(); }
	    public ZimbraQueryResults runQuery(String qstr, byte[] types, SortBy sortBy) throws IOException, MailServiceException, ParseException, ServiceException	    {	    	Mailbox mbox = MailboxManager.getInstance().getMailboxById(mMailboxId);	    	ZimbraQuery zq = new ZimbraQuery(qstr, null, null, mbox, types, sortBy, false, false, 100, true, Mailbox.SearchResultMode.NORMAL);            	    	return zq.execute(); 	    }