contacts icon indicating copy to clipboard operation
contacts copied to clipboard

Merge duplicate contacts

Open silverhook opened this issue 8 years ago • 40 comments

In the old contacts you were able to consolidate or merge two contact entries into one.

Example how this could work:

  • Alice is in the contact list twice
  • select both contacts for Alice
  • a “merge” button appears
  • click on the “merge” button
  • the two entries for Alice merge into one (if needed, user can be prompted regarding collisions)

This was particularly useful after importing contacts or syncing between several devices.

It would be great to have this option in the new contacts app as well.

As a bonus, a command to scan all your contacts for such duplicates and to consolidate them, would be awesome.


There is a $20 open bounty on this issue. Add to the bounty at Bountysource.

BountySource has since gone belly-up.

silverhook avatar Dec 25 '16 19:12 silverhook

At the very least, it would be good if the vCard UID was respected and if an existing contact with the same UID was found, it will replace the attributes with the imported ones.

Staja avatar Nov 01 '18 07:11 Staja

@Staja Could you open a separate feature request please? This is very different :)

skjnldsv avatar Nov 01 '18 07:11 skjnldsv

Bounty is now 70$...

aviallon avatar Sep 16 '20 22:09 aviallon

As a temporary workaround, I have made a Python script to deduplicate entries in VCF export.

https://gitlab.com/Exagone313/dotfiles/-/blob/master/shell/pythonscript/vcf-dedup

Exagone313 avatar Sep 18 '20 12:09 Exagone313

Thunderbird and CardBook plugin are good at this game

wadouk avatar Nov 02 '20 22:11 wadouk

Is there an app in nextcloud for this ?

baimard avatar Sep 22 '21 13:09 baimard

FYI: The total bounty value now $85.00USD

YoSiJo avatar Nov 04 '21 08:11 YoSiJo

I'm gone do this functionnality because i'm bored.

baimard avatar Nov 04 '21 08:11 baimard

Shit. Can we expand more on that?

@baimard and everyone else who liked his comment please for the sake of open source.

binarykitchen avatar Nov 04 '21 08:11 binarykitchen

I chimed-in. Bounty is now at 120USD.

kbftech avatar Jun 14 '22 16:06 kbftech

This functionality would be very useful.

theRAGEhero avatar Nov 26 '22 15:11 theRAGEhero

Please, do address this issue. It is extremely important.

xplosionmind avatar May 06 '23 05:05 xplosionmind

I don't speak for the Nextcloud project (I'm just a casual contributor every once in a while) but I encourage everyone here who thinks this functionality would be useful, or is extremely important, to contribute a pull request adding it.

strugee avatar May 06 '23 07:05 strugee

7 years later and still don't have a BASIC yet extremely important feature. Sigh.

ghost avatar Jun 26 '23 15:06 ghost

7 years later and still don't have a BASIC yet extremely important feature. Sigh.

No one is stopping you from writing the code. Or paying someone to write it.

AbelLykens avatar Jun 26 '23 17:06 AbelLykens

I don't speak for the Nextcloud project (I'm just a casual contributor every once in a while) but I encourage everyone here who thinks this functionality would be useful, or is extremely important, to contribute a pull request adding it.

I haven't got the time, but I gave some money.

aviallon avatar Jun 27 '23 07:06 aviallon

I gave some money

https://help.nextcloud.com/t/dont-use-bountysource-anymore/84943

ChristophWurst avatar Jul 21 '23 07:07 ChristophWurst

How's this not a priority for nextcloud devs, are you serious?

illnesse avatar Aug 30 '23 20:08 illnesse

There doesn't seem to be a new official bounty affiliate, is this true? I'm happy to add $ for this vital feature.

spcano01 avatar Oct 24 '23 18:10 spcano01

There is none

ChristophWurst avatar Oct 24 '23 18:10 ChristophWurst

There doesn't seem to be a new official bounty affiliate, is this true? I'm happy to add $ for this vital feature.

Yeah... me too!

Krelyshy avatar Nov 29 '23 18:11 Krelyshy

f

Thunderbird and CardBook plugin are good at this game

I tried this but it seems that it does not have this feature either. Or perhaps I am missing it. I can merge individual accounts but I would have to do it for all 300 duplicates myself. That is not really helpful.

Why is NC missing this very important thing. It is the third time I had to re-do all my contacts with some offline tool.

SODDINGIT avatar Feb 04 '24 11:02 SODDINGIT

f

Thunderbird and CardBook plugin are good at this game

I tried this but it seems that it does not have this feature either. Or perhaps I am missing it. I can merge individual accounts but I would have to do it for all 300 duplicates myself. That is not really helpful.

Why is NC missing this very important thing. It is the third time I had to re-do all my contacts with some offline tool.

Which tool do you use?

brennoflavio avatar Feb 04 '24 18:02 brennoflavio

In case someone wants to contribute this feature it would be nice, if one of the experienced developers could provide a hint where to start? Would it be better to provide a new app for that or add it as a feature to the existing contact app? Or is there a plugin API for the address book?

@ChristophWurst

nicodh avatar Feb 21 '24 10:02 nicodh

Sure! I suggest to approach this in these steps

  • [ ] Add multi select and bulk actions (as a start just add a bulk Delete action). You can use Mail as inspiration
    • image
    • https://github.com/nextcloud/mail/
  • [ ] Add a Merge action
    • Ask the user which contact should be kept
    • For any property that allows multiple values, combine the original values but discard duplicates
    • For any properties with a single value ask the user which one of the two originals should be kept

It would be best to have this inside the app.

ChristophWurst avatar Feb 21 '24 13:02 ChristophWurst

I would appreciate the feature described above very much. Let me suggest to think it in commong with contact deletion management (https://github.com/nextcloud/contacts/issues/296) to be able to undo unintended merges.

PhilippSchlesinger avatar Feb 26 '24 11:02 PhilippSchlesinger