How to download only new emails from imap?
问题 I have an application that is used to archive emails using imap. Also in this application are many imap accounts that need to be archived. In this moment from time to time the application connects to imap accounts and download only new emails. My issue is that every time when it connects to an imap account it verifies all emails from all folders and downloads only emails that aren't downloaded yet (I store Message-ID for all emails and download only emails that have an Message-ID that is not