Comment 6 for bug 558106

Revision history for this message
the_olo (the-olo-users) wrote :

Logged In: YES
user_id=244001

I suggest this patch to allow senders use any source address
they might have set in LDAP (the 'mail' attribute can have
multiple values!)

--- LDAPMemberships.py.orig 2004-04-01
12:31:54.000000000 +0200
+++ LDAPMemberships.py 2004-04-05 15:40:03.000000000 +0200
@@ -115,7 +115,9 @@
                                        # mail is unique
                                        mail =
attrs['mail'][0].strip()

self.__members.append(mail)
-
self.__member_map[mail] = mail
+ # mail can have
multiple values
+ for secondarymail in
attrs['mail']:
+
self.__member_map[secondarymail.strip()] = mail
                                        if
attrs.has_key('mailalternateaddress'):
                                                malts =
attrs['mailalternateaddress']
                                                for malt in
malts: