I've got a ton of duplicate contacts in my Thunderbird addressbook. I don't want to share them with Google, but I do want to find a way to de-dupe them. There was a duplicate contact manager plug in, but it seems to have been abandoned.
Can I do this at the commandline?
I had the same problem several years ago, and wrote a very small python script to unify the LDIF export of a Thunderbird addressbook:
cat abook.ldif | unify_ldif.py > abook_new.ldif
The script currently matches duplicate entries on email address and identical name, but this can of course be adapted (in function
find_existing_entry
). Does this work for you?The program is here (EDIT: you need the
python-ldap
package):