Imap MarkAsRead at the end of process

Unfortunately, I have nothing unique, neither in the body nor in the subject line of the e-mail. I might receive different mails from the same subject, for example, so I don’t know if it is possible to save the date and time of sending and filter it afterwards, for example