" SET imap_id = ? WHERE " + (DebugConfig.enableMailboxGroup ? "mailbox_id = ? AND " : "") + "id = ?");
" SET imap_id = ? WHERE " + IN_THIS_MAILBOX_AND + "id = ?");
    public static void saveImapUid(MailItem item) throws ServiceException {        Mailbox mbox = item.getMailbox();        Connection conn = mbox.getOperationConnection();        PreparedStatement stmt = null;        try {            stmt = conn.prepareStatement("UPDATE " + getMailItemTableName(mbox.getId()) +                " SET imap_id = ? WHERE " +                (DebugConfig.enableMailboxGroup ? "mailbox_id = ? AND " : "") +                "id = ?");            int pos = 1;            stmt.setInt(pos++, item.getImapUid());            if (DebugConfig.enableMailboxGroup)                stmt.setInt(pos++, mbox.getId());            stmt.setInt(pos++, item.getId());            stmt.executeUpdate();        } catch (SQLException e) {            throw ServiceException.FAILURE("setting IMAP UID for item " + item.getId(), e);        } finally {            DbPool.closeStatement(stmt);        }    }