mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-30 06:15:42 +00:00
(fix) only consider SMTP proxyAddresses for AD (fixes #3842)
This commit is contained in:
1 parent
5796992b56
commit
73cc81c71f
1 file changed
+4
-1
@@ -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