diff --git a/interfaces/exchangeAddressBook/exchangeAbDistListDirectory/exchangeAbDistListDirectory.js b/interfaces/exchangeAddressBook/exchangeAbDistListDirectory/exchangeAbDistListDirectory.js index 03050b14..11119510 100644 --- a/interfaces/exchangeAddressBook/exchangeAbDistListDirectory/exchangeAbDistListDirectory.js +++ b/interfaces/exchangeAddressBook/exchangeAbDistListDirectory/exchangeAbDistListDirectory.js @@ -999,7 +999,18 @@ exchangeAbDistListDirectory.prototype = { }, get user() { - return this.domain+"\\"+exchWebService.commonFunctions.safeGetCharPref(this.prefs, "user", ""); + var username = exchWebService.commonFunctions.safeGetCharPref(this.prefs, "user", ""); + if (username.indexOf("@") > -1) { + return username; + } + else { + if (this.domain == "") { + return exchWebService.commonFunctions.safeGetCharPref(this.prefs, "user", ""); + } + else { + return this.domain+"\\"+exchWebService.commonFunctions.safeGetCharPref(this.prefs, "user", ""); + } + } }, set user(value) { diff --git a/interfaces/exchangeAddressBook/exchangeAbFolderDirectory/exchangeAbFolderDirectory.js b/interfaces/exchangeAddressBook/exchangeAbFolderDirectory/exchangeAbFolderDirectory.js index baed5036..69f9077a 100644 --- a/interfaces/exchangeAddressBook/exchangeAbFolderDirectory/exchangeAbFolderDirectory.js +++ b/interfaces/exchangeAddressBook/exchangeAbFolderDirectory/exchangeAbFolderDirectory.js @@ -1126,7 +1126,18 @@ try { }, get user() { - return this.domain+"\\"+exchWebService.commonFunctions.safeGetCharPref(this.prefs, "user", ""); + var username = exchWebService.commonFunctions.safeGetCharPref(this.prefs, "user", ""); + if (username.indexOf("@") > -1) { + return username; + } + else { + if (this.domain == "") { + return exchWebService.commonFunctions.safeGetCharPref(this.prefs, "user", ""); + } + else { + return this.domain+"\\"+exchWebService.commonFunctions.safeGetCharPref(this.prefs, "user", ""); + } + } }, set user(value) {