mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-04 21:08:51 +00:00
oc-mail: Flush IMAP hierarchy cache to update Outlook folders
This fixes two scenarios: * An IMAP subfolder has updated its hierarchy when it is asked to be synchronised * An IMAP root folder is created on Outlook when you logon. OpenChange changes are required to be refreshed on synchronisation.
This commit is contained in:
@@ -368,6 +368,11 @@ static Class SOGoMailFolderK, MAPIStoreMailFolderK, MAPIStoreOutboxFolderK;
|
||||
if (sortOrderings)
|
||||
[self errorWithFormat: @"sort orderings are not used for folders"];
|
||||
|
||||
/* FIXME: Flush any cache before retrieving the hierarchy, this
|
||||
slows things down but it is safer */
|
||||
if (!qualifier)
|
||||
[sogoObject flushMailCaches];
|
||||
|
||||
subfolderKeys = [[sogoObject toManyRelationshipKeys] mutableCopy];
|
||||
[subfolderKeys autorelease];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user