mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-16 02:38:51 +00:00
(fix) only consider SMTP proxyAddresses for AD (fixes #3842)
This commit is contained in:
@@ -926,9 +926,12 @@ groupObjectClasses: (NSArray *) newGroupObjectClasses
|
||||
{
|
||||
ldapValue = [allValues objectAtIndex: i];
|
||||
r = [ldapValue rangeOfString: @":"];
|
||||
|
||||
if (r.length)
|
||||
{
|
||||
[emails addObject: [ldapValue substringFromIndex: r.location+1]];
|
||||
// We only keep "smtp" ones
|
||||
if ([[ldapValue lowercaseString] hasPrefix: @"smtp"])
|
||||
[emails addObject: [ldapValue substringFromIndex: r.location+1]];
|
||||
}
|
||||
else
|
||||
[emails addObject: ldapValue];
|
||||
|
||||
Reference in New Issue
Block a user