Valerion wrote:The email.map file must be in the same directory as the ldapsync config file. It uses the Subject Mapper from the Service Router.
The important lines areCode: Select all
displayname=`grep displayName sourcefile | cut -f 2 -d ":" | sed -e "s/^ //"`
email=""$displayname" <$input>"
This takes the Display Name from LDAP, as well as the email address and formats it asCode: Select all
Display Name <email>
and then returns the value. I needed to extract the value from the displayName, hence the cut and sed.
The rest of the script is just wrapping around it, to get the data from the Subject Mapper and to return various result values to it.
Credit here must go to Florian, he showed me the ropes in the beginning
Time to bring this back up.
Would this be a change that could be made to a live sync agreement? Would there be any issues with doing so? For example, would making the changes above to an agreement that was used to popluate my entire Scalix user-base cause any corruption of the Scalix sync data or the Scalix directory itself?
Thanks again for the help.
As an aside: I think that having Scalix handle this would make a very useful Feature/Enhancement Request. In my mind, there is no reason why Scalix couldn't just grab the displayName and the IA and create a properly formatted email address before sending.