[turba] multiple email addresses for one contact

eculp at encontacto.net eculp at encontacto.net
Thu Mar 29 18:20:45 UTC 2007


Quoting Andrew Morgan <morgan at orst.edu>:

> On Thu, 29 Mar 2007, Martin Fraser wrote:
>
>> Jan Schneider wrote:
>>>
>>> Yes. And do I understand correctly that the LDAP server is returning
>>> the RFC2822-formatted email list?
>>>
>>> Jan.
>>>
>>
>> I don't have LDAP logging on so I'm not sure of the exact info coming
>> from the server, but in the ldap driver to turba it parses multiple
>> return values and concatenates them.
>>
>> The string I see is the result of the format email call which returns
>> both addresses with user (at) example (dot) com in a comma separated
>> list. This leads me to think LDAP is returning everything OK, but when I
>> click on the link IMP starts an email with everything after and
>> including the second @ missing so it doesn't even send to all the addresses.
>>
>> So, LDAP seems to return all the addresses, but the string generated for
>> the link doesn't contain them all.
>>
>> Now, that more than likely didn't make sense.
>>
>> Thanks again for the quick reply and any help you may give.
>
> If the addresses are being stored in LDAP As-They-Should-Be(tm), then the
> "mail" attribute will have multiple values in it:
>
> mail: morgan at orst.edu
> mail: morgan at onid.orst.edu
>   .. etc ..
>
> PHP would return these as an array of email addresses.  What happens next
> is up to Turba.

I had never tested multi-values with turba so our of curiosity I added  
a couple of email addressed to my personal entry and they are correct  
in ldap but turba does convert them to comma separated.  Hmmmm..

ed
>
>  	Andy
> --
> Turba mailing list - Join the hunt: http://horde.org/bounties/#turba
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: turba-unsubscribe at lists.horde.org
>



More information about the turba mailing list