items.add(mh.getMessage());
Message m = mh.getMessage(); mTotalSize += m.getSize(); mMessages.add(new Pop3Msg(m));
    Pop3Mbx(Mailbox mailbox, Account acct, String query) throws ServiceException {        mId = mailbox.getId();        mNumDeleted = 0;        mDeletedSize = 0;        List items = null;        mOpContext = new Mailbox.OperationContext(acct);        if (query == null || query.equals("")) {            items = mailbox.getItemList(mOpContext, MailItem.TYPE_MESSAGE, Mailbox.ID_FOLDER_INBOX);        } else {            ZimbraQueryResults results;            try {                results = mailbox.search(mOpContext, query, new byte[] { MailItem.TYPE_MESSAGE }, MailboxIndex.SEARCH_ORDER_DATE_DESC, 1000);                items = new ArrayList();                while (results.hasNext()) {                    ZimbraHit hit = results.getNext();                    if (hit instanceof MessageHit) {                        MessageHit mh = (MessageHit) hit;                        items.add(mh.getMessage());                    }                }            } catch (IOException e) {                throw ServiceException.FAILURE(e.getMessage(), e);            } catch (ParseException e) {                throw ServiceException.FAILURE(e.getMessage(), e);            }        }        mMessages = new Pop3Msg[items.size()];        for (int n = 0; n < items.size(); n++) {            Message m = (Message) items.get(n);            mMessages[n] = new Pop3Msg(m);            mTotalSize += mMessages[n].getSize();        }    }