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:
Enrique J. Hernández Blasco
2015-05-05 10:46:53 +02:00
parent dc5237e92e
commit 2d65b75b56
2 changed files with 8 additions and 0 deletions

View File

@@ -146,6 +146,9 @@ MakeDisplayFolderName (NSString *folderName)
DLIST_ADD_END (firstContext, context, void);
}
/* FIXME: Flush any cache before retrieving the hierarchy */
[accountFolder flushMailCaches];
secondaryFolders = [[accountFolder toManyRelationshipKeysWithNamespaces: NO]
mutableCopy];
[secondaryFolders autorelease];