Unique Email Identifiers with IMAP
问题 I am creating an GMail email interface in Django/Python. I want to create a skeleton of all emails, containing subject and date, a kind of overview-level index, so that even if an email is deleted, I have an indicator it existed and when it was sent. My problem is, considering that IMAP UIDs change, what can I use as a unique email identifier? Even if I create the skeleton of each email with a unique ID in my database, if I associate a email UID and IMAP folder name to it, the UID can change