(fix) EAS folder name for emails in v3

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

View File

@ -885,7 +885,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
continue;
serverId = [NSString stringWithFormat: @"mail/%@", [[imapGUIDs objectForKey: nameInCache] substringFromIndex: 6]];
name = [folderMetadata objectForKey: @"displayName"];
// In v3, we use "name" while in v2, it was "displayName"
name = [folderMetadata objectForKey: @"name"];
// avoid duplicate folders if folder is returned by different imap namespaces
if ([processedFolders indexOfObject: serverId] == NSNotFound)