Bug 3346 - Contact merging
Summary: Contact merging
Status: RESOLVED FIXED
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: UI/Address Book (show other bugs)
Version: 3.12.0
Hardware: PC Linux
: P3 enhancement
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2014-12-05 03:57 UTC by Charles E. Lehner
Modified: 2018-04-10 00:27 UTC (History)
0 users

See Also:


Attachments
[patch] Add contact merging feature in address book (10.53 KB, patch)
2014-12-05 03:57 UTC, Charles E. Lehner
no flags Details | Diff
[patch] Add contact merging, with user prompt (25.43 KB, patch)
2014-12-06 22:47 UTC, Charles E. Lehner
no flags Details | Diff
Patch updated to build against recent GIT and GTK (+fixes) (24.82 KB, patch)
2018-04-08 17:47 UTC, wwp
no flags Details | Diff

Description Charles E. Lehner 2014-12-05 03:57:04 UTC
Created attachment 1454 [details]
[patch] Add contact merging feature in address book

This patch adds a simple contact merging operation, to help users with merging contacts by hand in the address book. With multiple contacts selected, "Merge" can be chosen from the pop-up menu or Edit menu. Then the selected emails or persons will be combined into one entry with their attributes combined.

Currently the names and photos of persons other than the first selected person are lost in the merge, as only the emails and attributes are moved. More logic could be added to allow the user to choose which name and photo to keep for the contact.
Comment 1 Paul 2014-12-05 09:15:07 UTC
Seems a good idea but is unfortunate that it discards information.
Comment 2 Charles E. Lehner 2014-12-06 22:47:19 UTC
Created attachment 1456 [details]
[patch] Add contact merging, with user prompt

I've updated the patch now to prompt the user for which picture to keep, and which name to keep, in the cases where contacts with multiple pictures or different names are selected for merging.

Feedback is welcome!
Comment 3 Charles E. Lehner 2015-05-12 11:13:02 UTC
Anyone have thoughts on this? I still think it's a useful feature to add.
Comment 4 wwp 2015-05-12 11:22:42 UTC
Sounds promising, I'll give it a try and review the patch.
Comment 5 wwp 2018-04-08 17:47:37 UTC
Created attachment 1863 [details]
Patch updated to build against recent GIT and GTK (+fixes)
Comment 6 wwp 2018-04-08 17:52:36 UTC
Sorry for the delay.. I had to update the patch so that it builds against fresh GIT code, and solve use of deprecated GTK+ calls, but also fixing the picture selection (previous patch was getting picture data that could not be used to check picture filenames). Basically the patch works, as far as I could test it. There are ways to enhance it, like making the dialog contents expanding upon dialog resize, sorting names, adding a tooltip or another side-widget that would show full contact detail upon picture or name selection, and maybe in-depth contact data checking because currently it only checks for name data to determine if contacts are similar (IIRC).
Comment 7 Ricardo Mones 2018-04-09 13:39:21 UTC
Updated patch builds and works nicely here, I'd say push it! ;-)
Comment 8 users 2018-04-10 00:26:08 UTC
Changes related to this bug have been committed.
Please check latest Git and update the bug accordingly.
You can also get the patch from:
http://git.claws-mail.org/

++ ChangeLog	2018-04-10 00:26:07.515195760 +0200
http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=d705f90f18bbdb91babd1ac9e83cad06c919f6ec
Merge: ef5e4d1 f25722a
Author: Colin Leroy <colin@colino.net>
Date:   Tue Apr 10 00:26:05 2018 +0200

    Merge branch 'master' of file:///home/git/claws

http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=f25722af77b9378ce0fcfb4c3d09b9bd3c01902a
Author: wwp <wwp@free.fr>
Date:   Tue Apr 10 00:23:14 2018 +0200

    Add a basic contact merging feature to the address book, thanks to
    Charles Lehner <cel@celehner.com>.
    Closes bug 3346: Contact merging

Note You need to log in before you can comment on or make changes to this bug.