We have moved to a new Sailfish OS Forum. Please start new discussions there.

Auto merge online contacts (e.g., from GTalk's XMPP) to imported VCF's [answered]

asked 2013-12-30 14:25:53 +0300

gabriel gravatar image

updated 2014-03-16 12:53:38 +0300

So, I read the 2 contact merge questions and am aware that it can be done manually. However, it would be nice if the Jolla could automatically merge the contacts that XMPP services such as Google Talk reports to a contact in the People application with the same ID (in this case email address).

My use case is this: I imported all my contacts from the N9, contacts which have email address and instant messaging address shouldn't be split so that I have to manually link them again.

EDIT: to clarify, my use case is importing from the VCF files that Harmattan, which come with the appropriate fields. Auto merging after that is arguable (the suggestion that is already implemented works well though). Basically, contacts in the VCF have already jabber fields but they aren't recognized in Sailfish somehow, so one has to do the merge again.

EDIT: greatly improved in, so closing. This question wasn't about magical linking/merging, but more by ID (email address, etc.).

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by gabriel
close date 2014-03-16 12:54:05.807379

2 Answers

Sort by » oldest newest most voted

answered 2013-12-31 01:37:35 +0300

jbrooks gravatar image

This is a difficult topic.

We already do merge the contacts automatically based on their names when possible; this can break in some cases, because name matching can't be done perfectly, but it should cover 70-80% of contacts that appear both in IM accounts and from sync services (or imported vcards, probably).

We don't yet try to match the IM addresses to any other details; we could match them to email accounts without generating false positives, and we have a task filed to do that. But sometimes, the IM addresses aren't real email addresses, and aren't included in other contacts at all. In particular, this happens with contacts from Google Plus (rather than Google Talk). We'd have to come up with a more inventive way to match IM addresses there, or just rely on the name matching.

Of course, we have to be careful: it's a bad thing to automatically merge contacts together if they're actually different people. So, there are some small ways we can improve it, and we have some tasks filed, but it's ultimately a really hard problem that can't be solved perfectly.

edit flag offensive delete publish link more


A good start would be matching on IMPP properties.

IMPP:xmpp:someone@example.com should link to a generic XMPP account with the example.org domain - or any domain for that matter.

Some use the X-SERVICE-TYPE paramater to distinguish services cont.

Tanghus ( 2013-12-31 01:59:14 +0300 )edit


as in IMPP;X-SERVICE-TYPE=jabber:xmpp:someone@jabber.org or IMPP;X-SERVICE-TYPE=googletalk:xmpp:someone@gmail.com

Tanghus ( 2013-12-31 02:00:58 +0300 )edit

I've had a slight problem with contact merging, but in the opposite direction: two of my Facebook contacts have automatically been merged into one in the People app because they share the same name. (I only have the phone number of one of those two (imported from SIM), and that's saved under his nickname, not Facebook handle.) I first thought of asking a totally new question here on Together, but then decided this thread came close enough just to add a comment and see what comes of it...

Kayakist ( 2014-02-28 00:53:52 +0300 )edit

Finally checked in and it works as expected. Simple linking/merging works like a charm (i.e., if you get somebody with test@example.com from Google Talk and you import somebody with test@example.com as email, they get linked). So, I'm closing this.

gabriel ( 2014-03-16 12:53:07 +0300 )edit

answered 2014-01-07 18:10:21 +0300

chemist gravatar image

updated 2014-01-07 18:12:12 +0300

Android merges contacts even when parts of the them match, horribly bad idea! On the other hand not recognizing already setup entries is a bug! https://together.jolla.com/question/11630/bug-people-does-not-recognize-entries-correctly/

edit flag offensive delete publish link more

Question tools



Asked: 2013-12-30 14:25:53 +0300

Seen: 591 times

Last updated: Mar 16 '14