" WHERE " + (DebugConfig.enableMailboxGroup ? "mailbox_id = ? AND " : "") + "folder_id = ? AND type IN " + POP3_TYPES);
" WHERE " + IN_THIS_MAILBOX_AND + "folder_id = ? AND type IN " + POP3_TYPES);
    public static List<Pop3Message> loadPop3Folder(Folder folder) throws ServiceException {        Mailbox mbox = folder.getMailbox();        List<Pop3Message> result = new ArrayList<Pop3Message>();        Connection conn = mbox.getOperationConnection();        PreparedStatement stmt = null;        ResultSet rs = null;        try {            stmt = conn.prepareStatement("SELECT " + POP3_FIELDS +                    " FROM " + getMailItemTableName(folder.getMailboxId(), " mi") +                    " WHERE " +                    (DebugConfig.enableMailboxGroup ? "mailbox_id = ? AND " : "") +                    "folder_id = ? AND type IN " + POP3_TYPES);            int pos = 1;            if (DebugConfig.enableMailboxGroup)                stmt.setInt(pos++, mbox.getId());            stmt.setInt(pos++, folder.getId());            rs = stmt.executeQuery();            while (rs.next())                result.add(new Pop3Message(rs.getInt(1), rs.getInt(2), rs.getString(3)));            return result;        } catch (SQLException e) {            throw ServiceException.FAILURE("loading POP3 folder data: " + folder.getPath(), e);        } finally {            DbPool.closeResults(rs);            DbPool.closeStatement(stmt);        }    }