Skip to content

Commit

Permalink
(fix) fallback to email address if no CN is found (fixes #3733)
Browse files Browse the repository at this point in the history
  • Loading branch information
extrafu committed Jun 17, 2016
1 parent d2b44b6 commit c8c8d12
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions SoObjects/Mailer/SOGoMailAccount.m
Expand Up @@ -513,9 +513,10 @@ - (NSMutableDictionary *) _insertFolder: (NSString *) folderPath
// Parent folder is the "Other users" folder; translate the user's mailbox name
// to the full name of the person
userManager = [SOGoUserManager sharedUserManager];
fullName = [userManager getCNForUID: currentFolderName];
if (fullName)
if ((fullName = [userManager getCNForUID: currentFolderName]) && [fullName length])
currentFolderName = fullName;
else if ((fullName = [userManager getEmailForUID: currentFolderName]) && [fullName length])
currentFolderName = fullName;
}
else if (isOtherUsersFolder)
{
Expand Down

0 comments on commit c8c8d12

Please sign in to comment.