Roundcube Community Forum

 

Track #1484842 - Multiple LDAP attributes

Started by l0n3star, April 03, 2009, 11:11:29 AM

Previous topic - Next topic

l0n3star

Hello all,

first I wanted to thank you for this great webmail client. I'm using it for quite a long time and am very happy with it. So today I wanted to provide a patch for issue #1484842.

I'm having an LDAP directory storing contacts that have mutliple email addresses. This patch allows you to use all addresses. If a contact has more than one email address, all the addresses are displayed when doing autocomplete in the "compose window" as well as within the "addressbook window".

Additionally, you could provide an array in the configuration file to contain more than one attribute that may hold an email address:

'email_field' => array('mail','homeMail'),

Hope this is helpfull for somebody, please provide feedback if you like (or dislike) it.

Kind Regards,
Andreas

binco

I've searched a long time for such a modification, and finally told myself that is wasn't that important, that i would write my own.

I'll test it and write my feedback here...

Thanks

l0n3star

Hi binco,

please note, the patch is for version 0.2.1, I forgot that in my last post.
Any comments are welcome.

Regards

binco

#3
I've tested the patch and it works fine. There are only to small problems:

1) You can't add Contacts with multiple mail-adresses
2) You can't edit Contacts with multipe mail-adresses (mail-attribute is set to 'Array')

i'll take a look, how hard it would be to implement these features...

EDIT: I've tested with 0.2-stable (I have to apply manually, because it's not the first patch)

l0n3star

Thank's for the feedback.

Well, editing and creating wasn't in my view as this is not my usecase (my LDAP is a read only directory at least for roundcube).

If I find some spare time, I will also have a look at create/editing features...

Regards
Andreas