IMail |
FolderAccess Open( FolderAccess access, uint uidValidity, ulong highestModSeq, IList<UniqueId> uids, CancellationToken cancellationToken = default )
This variant of the Open(FolderAccess, CancellationToken) method is meant for quick resynchronization of the folder. Before calling this method, the EnableQuickResync(CancellationToken) method MUST be called.
You should also make sure to add listeners to the MessagesVanished and MessageFlagsChanged events to get notifications of changes since the last time the folder was opened.