Author Topic: Track #1484842 - Multiple LDAP attributes  (Read 2948 times)

Offline l0n3star

  • Newbie
  • *
  • Posts: 3
Track #1484842 - Multiple LDAP attributes
« on: April 03, 2009, 11:11:29 AM »
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

Offline binco

  • Newbie
  • *
  • Posts: 3
Thank you very much
« Reply #1 on: April 08, 2009, 09:36:08 AM »
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

Offline l0n3star

  • Newbie
  • *
  • Posts: 3
Please note
« Reply #2 on: April 08, 2009, 09:39:53 AM »
Hi binco,

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

Regards

Offline binco

  • Newbie
  • *
  • Posts: 3
Track #1484842 - Multiple LDAP attributes
« Reply #3 on: April 08, 2009, 10:02:07 AM »
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)
« Last Edit: April 08, 2009, 10:06:57 AM by binco »

Offline l0n3star

  • Newbie
  • *
  • Posts: 3
Good points
« Reply #4 on: April 08, 2009, 10:06:25 AM »
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