Skip to content

Commit

Permalink
Merge pull request #334 from Trim/ec-3.4
Browse files Browse the repository at this point in the history
AddressBook: get the right username for address books
  • Loading branch information
bavincen committed Sep 17, 2015
2 parents db80a17 + 2c35ea7 commit b9523be
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b9523be

Please sign in to comment.