public static void deleteTestData(String userName, String subjectSubstring, byte type)
public static void deleteTestData(String userName, String subjectSubstring)
    public static void deleteTestData(String userName, String subjectSubstring, byte type)    throws Exception {        Mailbox mbox = TestUtil.getMailbox(userName);                String sql =            "SELECT id " +            "FROM " + DbMailItem.getMailItemTableName(mbox) +            " WHERE " +            (!DebugConfig.disableMailboxGroup ? "mailbox_id = " + mbox.getId() + " AND " : "") +            "type = " + type + " AND subject LIKE '%" + subjectSubstring + "%' ";        DbResults results = DbUtil.executeQuery(sql);        while (results.next()) {            int id = results.getInt(1);            try {                mbox.getItemById(null, id, type);                mbox.delete(null, id, type);                ZimbraLog.test.debug("Deleted item " + id + ", type " + type);            } catch (NoSuchItemException e) {                ZimbraLog.test.debug("Unable to delete item " + id + ".  Must have been deleted by parent.");             }        }    }