[turba] multiple email addresses for one contact

Andrew Morgan morgan at orst.edu
Thu Mar 29 18:10:06 UTC 2007


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.

 	Andy


More information about the turba mailing list