> 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.
as I know, this is today not possible: you have to choose if you want 
UID or email 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)?
the function is not the problem, but the ID should be unique on your 
server!

In general, we should have a config option for how to build new UID's
Andreas
_______________________________________________
List info: http://lists.roundcube.net/dev/
BT/8f4f07cd

Reply via email to