mirror of
https://github.com/Kopano-dev/kopano-ol-extension.git
synced 2023-10-10 13:37:40 +02:00
[KOE-169] Added option to allow FileAs to be set by Outlook in GAB contacts
This commit is contained in:
parent
35ef1e9b92
commit
6ecc15d237
@ -254,6 +254,14 @@ namespace Acacia.Features.GAB
|
|||||||
}
|
}
|
||||||
private static readonly BoolOption OPTION_SMTP_GROUPS_AS_CONTACTS = new BoolOption("SMTPGroupsAsContacts", false);
|
private static readonly BoolOption OPTION_SMTP_GROUPS_AS_CONTACTS = new BoolOption("SMTPGroupsAsContacts", false);
|
||||||
|
|
||||||
|
[AcaciaOption("If enabled, the FileAs field will be set to displayName. Otherwise, Outlook will create it.")]
|
||||||
|
public bool FileAsDisplayName
|
||||||
|
{
|
||||||
|
get { return GetOption(OPTION_FILE_AS_DISPLAY_NAME); }
|
||||||
|
set { SetOption(OPTION_FILE_AS_DISPLAY_NAME, value); }
|
||||||
|
}
|
||||||
|
private static readonly BoolOption OPTION_FILE_AS_DISPLAY_NAME = new BoolOption("FileAsDisplayName", false);
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Modification suppression
|
#region Modification suppression
|
||||||
|
@ -522,6 +522,7 @@ namespace Acacia.Features.GAB
|
|||||||
if (Get<string>(value, "title") != null) contact.JobTitle = Get<string>(value, "title");
|
if (Get<string>(value, "title") != null) contact.JobTitle = Get<string>(value, "title");
|
||||||
if (Get<string>(value, "displayName") != null)
|
if (Get<string>(value, "displayName") != null)
|
||||||
{
|
{
|
||||||
|
if (_feature.FileAsDisplayName)
|
||||||
contact.FileAs = Get<string>(value, "displayName");
|
contact.FileAs = Get<string>(value, "displayName");
|
||||||
contact.FullName = Get<string>(value, "displayName");
|
contact.FullName = Get<string>(value, "displayName");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user