[ldapfeed] properly mark email address as encountered during import to avoid deleting them
--- a/sobjects/ldapparser.py Fri May 11 10:14:51 2012 +0200
+++ b/sobjects/ldapparser.py Tue May 15 10:32:53 2012 +0200
@@ -104,6 +104,10 @@
entity.set_relations(use_email=email)
else:
entity.set_relations(primary_email=email)
+ elif self.sourceuris:
+ # pop from sourceuris anyway, else email may be removed by the
+ # source once import is finished
+ self.sourceuris.pop(str(userdict['dn'] + '@@' + emailaddr), None)
# XXX else check use_email relation?
@cached