I have a python script that has to fetch unseen messages, process it, and mark as seen (or read)
I do this after login in:
typ, data = self.serve
I think the flag names need to start with a backslash, eg: \SEEN