fix(addressbook(dav)): add support for mail property in addressbook-query

Fixes #5489
This commit is contained in:
Francis Lachapelle
2022-03-04 08:29:03 -05:00
parent 74a73638cf
commit 8409c3cbb5
6 changed files with 6 additions and 1 deletions

View File

@@ -59,6 +59,7 @@
Possible vCard properties are:
- EMAIL
- MAIL
- FN
- N
- ORG

View File

@@ -341,7 +341,7 @@ Class SOGoContactSourceFolderK;
folderWithName: name
andDisplayName: srcDisplayName
inContainer: self];
[folder setSource: [um sourceWithID: name]];
[(SOGoContactSourceFolder *)folder setSource: [um sourceWithID: name]];
}
domain = [domains nextObject];
}

View File

@@ -487,6 +487,7 @@ static NSArray *folderListingFields = nil;
[self nameFields], @"fn",
[self nameFields], @"n",
@"c_mail", @"email",
@"c_mail", @"mail",
@"c_telephonenumber", @"tel",
@"c_o", @"org",
@"c_l", @"adr",

View File

@@ -166,6 +166,7 @@
isValid = ([newString isEqualToString: @"fn"]
|| [newString isEqualToString: @"n"]
|| [newString isEqualToString: @"email"]
|| [newString isEqualToString: @"mail"]
|| [newString isEqualToString: @"tel"]
|| [newString isEqualToString: @"org"]
|| [newString isEqualToString: @"adr"]);

View File

@@ -930,6 +930,7 @@ groupObjectClasses: (NSArray *) newGroupObjectClasses
@"cn", @"fn",
@"cn", @"n",
@"mail", @"email",
@"mail", @"mail",
@"telephonenumber", @"tel",
@"o", @"org",
@"l", @"adr",

View File

@@ -743,6 +743,7 @@
@"c_cn", @"fn",
@"c_cn", @"n",
@"mail", @"email",
@"mail", @"mail",
@"c_telephonenumber", @"tel",
@"c_o", @"org",
@"c_l", @"adr",