Hi Andreas,
Am 01.11.2011 14:29, schrieb Andreas Dick:
Also adding addresses from E-Mails does not work this way.
Outch, right. When adding addresses from emails, only name and email address data is present. How should a UID be automatically derived from these?
The most sensible thing IMO would be to fill the UID with the email address in this case. Or maybe generate a unique number with function uniqid or similiar.
the main problem here is that RC do not know how to build new UID's compatible with your server setup...
Yes, but as I see it this function is anyway only used to store e-mail addresses together with a name, so that the e-mail address is available for composing new mails.
For a complete contact entry the data needs to be entered anyhow separately (or at least the automatically stored contact needs to be heavily amended) and a compatible UID could be assigned in this case.
So using the e-mail as UID should be ok in this case and would fit to the current behaviour, where mail is used as RDN.
Using a UID generated by a standard PHP function (e.g. uniqid) should be fine as well. Maybe with 'RC-' as prefix.
thus creating new contacts is kind of problematic, isnt it? Or is there an officially accepted way to build them? E.g. just increasing a number until it is not occupied allready?
I would assume that PHP provides a function to generate a GUID (Globally Unique Identifier)?
Manfred