brion@brion-laptop:~$ perl evo_eliminate_duplicate_contacts.pl
]]>evo_eliminate_duplicate_contacts.pl
]]>*this being the tricky part…
]]>@Addressed Out & Ismael: it’s a very dumb script, it simply keeps the first record for each person, and it does the checking based on the person’s name. So it will not merge duplicate records, and it will blindly remove everything beyond the first one it finds for each person. If the first record it finds is empty, that’s the one it’ll keep. Furthermore, there’s no way to know which record it will find first, given the nature of the database file in which the records are stored.
The script could be improved to do merging, or at least to check which record has more information before deleting them. Unfortunately I am not using Evolution any more, so that will have to be a task for someone else
I just had a question –
your script just eliminates duplicates – but does it merge duplicate contacts? (e.g. if I’d added a work telephone No. to one entry and a Mob. No. to the other does this info get saved) – or does the script just delete the second version. Many thanks.
Anyhow, it’ll be really useful a cleaning tool for evo.
]]>Your script worked really fine for me. thank you.
]]>