Canonification

Paul Bronson signaldeveloper at gmail.com
Wed Sep 2 02:09:54 CEST 2015


Torsten,

When I use

primary_mail = '%(givenname)s'[0:1]%(surname)s@%(domain)s

It shows properly in web interface:

screenshot (minus the domain name):
http://cl.ly/image/3y0m1b0t1H2N


I changed in kolab.conf to:

primary_mail =  "%(givenname).1s%(surname)@%(domain)"

also tried:

primary_mail = '{initial}{surname}@{domain}'.format(initial=first_name[0].lower(),
surname=surname.lower(), domain=domain)

But does not give me output on web admin:

screenshot:
http://cl.ly/image/1v2o131Q3j2u


On Tue, Sep 1, 2015 at 5:27 AM, Torsten Grote <torsten at kolab.org> wrote:

> On Monday 31 August 2015 20:44:24 Paul Bronson wrote:
> > primary_mail = '%(givenname)s'[0:1]%(surname)s@%(domain)s
>
> Please check the python syntax of that statement. This is what I am
> getting:
>
> >>> params = { "givenname":"Hans", "surname":"Wurst", "domain":"fleischer"
> }
> >>> print "'%(givenname)s'[0:1]%(surname)s@%(domain)s" % params
> 'Hans'[0:1]Wurst at fleischer
>
> And this is probably not how you want your email addresses to look like.
>
> Kind Regards,
> Torsten
>
> --
> pgp: 0x2175A534A4F2EFA3
> _______________________________________________
> users mailing list
> users at lists.kolab.org
> https://lists.kolab.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kolab.org/pipermail/users/attachments/20150901/a778566c/attachment.html>


More information about the users mailing list