You could check this reply from florian
http://www.scalix.com/forums/viewtopic.php?f=8&t=2229&start=0
Moderators: ScalixSupport, admin
Code: Select all
UIstrings.ID.S = "Last";
Code: Select all
SettingsInfo.mailAddressTemplates = new Array();
SettingsInfo.fullMailAddressTemplates = new Array();
SettingsInfo.authIdTemplates = new Array();
SettingsInfo.fullAuthIdTemplates = new Array();
Code: Select all
// '"C" <S>'
SettingsInfo.computeIdS = function(calcObj, nameObj, includeDomain) {
var str = "";
if (nameObj.surName != null && nameObj.surName != "") {
str = nameObj.surName;
}
str = str.replace(SettingsInfo.IdIllegalCharactersRegExp, SettingsInfo.convertChar);
if (str != "" && includeDomain && nameObj.authIdDomain != "") {
str += "@" + nameObj.authIdDomain;
}
return str;
};
Code: Select all
SettingsInfo.authIdTemplates["Gis"] =
SettingsInfo.fullAuthIdTemplates["Gis"] =
SettingsInfoBaseTemplate.create("Gis", UIstrings.ID.Gis, SettingsInfo.computeIdGis, null, false);
Code: Select all
SettingsInfo.fullMailAddressTemplates['"C" <S>'] =
SettingsInfo.mailAddressTemplates['"C" <S>'] =
SettingsInfoBaseTemplate.create('"C" <S>', UIstrings.ID.S, SettingsInfo.computeIdS, null, false);
SettingsInfo.authIdTemplates["S"] =
SettingsInfo.fullAuthIdTemplates["S"] =
SettingsInfoBaseTemplate.create("S", UIstrings.ID.S, SettingsInfo.computeIdS, null, false);
I do not want to add users by command line. I just want to have an entry like "Last" in the drop down menu in the SAC, to add rule like last@domain.
BaldBoy wrote:Thanks for the compliments les.
I've really have not done nothing particular: just cloned already existing functions to accomplish "Last" only rule.
However I would not subscribe for such an option to be implemented by default in future releases. Let me explain:
- In my experience I've almost never seen email addresses in the form last@domain. Not-written standard rules, lead by common sense, are the ones already covered by scalix's default settings.
- The risk of creation of duplicated IDs is very high: this could lead non-experienced users to wonder why this is happening.
Users browsing this forum: No registered users and 11 guests