def METHOD_NAME(self, timeout=None) -> int:
    """Return first message with SEEN flag from a running idle-stream."""
    while True:
        for item in self.check(timeout=timeout):
            if FETCH in item:
                self.log(str(item))
                if FLAGS in item and rb"\Seen" in item:
                    return int(item.split(b" ")[1])