def _match_keyword(self):
        """
        True if the given flag is set on this message. In our implementaton
        keywords (aka flags) are indicated by the sequences a message is in.
        """
        # Get the sequences this message is in.. remember we have to map from
        # the IMAP system flag map to the flags we use in our sequences
        # (because '\' is not valid in a sequence
        #
        # NOTE: If the keyword being looked for is '\Recent' and this message
        #       did indeed have '\Recent' set then we set the 'matched_recent'
        #       attribute on our ctx. This is so the entity calling us can make
        #       a decision on whether or not the message is removed from the
        #       recent sequence or not.
        #
        keyword = asimap.constants.flag_to_seq(self.args['keyword'])
        result = self.ctx.sequences in keyword
        # XXX Decided that I am not going to reset the \Recent flag on a search
        #     match.
        # if result and self.args['keyword'] == '\\Recent':
        #     self.ctx.matched_recent = True
        return result

    #########################################################################
    #
dataset/ETHPy150Open scanner/asimap/asimap/search.py/IMAPSearch._match_keyword/swapped operands of `in`