(fix) EAS mail sync fix for v3

pull/186/head
Ludovic Marcotte 2016-01-07 11:39:15 -05:00
parent a755546f75
commit ed799c5c35
1 changed files with 3 additions and 2 deletions

View File

@ -876,8 +876,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
for (i = 0; i < [allFoldersMetadata count]; i++)
{
folderMetadata = [allFoldersMetadata objectAtIndex: i];
nameInCache = [NSString stringWithFormat: @"folder%@", [[folderMetadata objectForKey: @"path"] substringFromIndex: 1]];
// In v3, the "path" value does not have a '/' at the beginning
nameInCache = [NSString stringWithFormat: @"folder%@", [folderMetadata objectForKey: @"path"]];
// we have no guid - ignore the folder
if (![imapGUIDs objectForKey: nameInCache])