def search_UID(self, query, id, msg, (lastSequenceId, lastMessageId)):
        """
        Returns C{True} if the message UID is in the range defined by the
        search query.

        @type query: A C{list} of C{str}
        @param query: A list representing the parsed form of the search
            query. Its first element should be a C{str} that can be interpreted
            as a sequence range, for example '2:4,5:*'.

        @type id: C{int}
        @param id: The sequence number of the message being checked.

        @type msg: Provider of L{imap4.IMessage}
        @param msg: The message being checked.

        @type lastSequenceId: C{int}
        @param lastSequenceId: The highest sequence number of a message in the
            mailbox.

        @type lastMessageId: C{int}
        @param lastMessageId: The highest UID of a message in the mailbox.
        """
        c = query.pop(0)
        m = parseIdList(c, lastMessageId)
        return msg.getUID() in m
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/mail/imap4.py/IMAP4Server.search_UID/original