<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Eli,<br>
<br>
Sorry for top posting, but OWA doesn't quote properly.<br>
<br>
Firstly, was_local contacts occur when a local (phone device) contact is aggregated into another contact which already had a local constituent.  We only allow one single local constituent per aggregate contact, so one of them gets demoted to was_local.  This
 can occur if you import from a .vcf or via Bluetooth, for example.<br>
<br>
If you can reproduce the duplication event and provide sync logs of that event (as per https://sailfishos.org/wiki/CalDAV_and_CardDAV_Community_Contributions#Sync_Logs) that would be helpful!<br>
<br>
You should be able to delete the contacts from the database so long as you also delete any entries from the OOB table which relate to that CardDAV account.<br>
<br>
Best regards,<br>
Chris.<br>
<br>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF14514"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Devel [devel-bounces@lists.sailfishos.org] on behalf of E.S. Rosenberg [es.rosenberg+sailfishos.org@gmail.com]<br>
<b>Sent:</b> Monday, February 20, 2017 9:13 AM<br>
<b>To:</b> Sailfish OS Developers<br>
<b>Subject:</b> [SailfishDevel] [CardDAV] duplicate entries<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>Hi everyone,<br>
</div>
Last week I noticed that my phone seems to have gone into similar behavior as I described a long time ago with google sync here:<br>
<a href="redir.aspx?REF=BkinU6px9FrM54d6ielCeDXCD5DIiZfVbcbzrM1uzBJs4ViOMFnUCAFodHRwczovL3RvZ2V0aGVyLmpvbGxhLmNvbS9xdWVzdGlvbi81ODQxNi9maXhpbmctdGhlLWNvbnRhY3RzLWRiLw.." target="_blank">https://together.jolla.com/question/58416/fixing-the-contacts-db/</a><br>
<br>
</div>
I currenlty have 26k entries in contacts.db for 9xx contacts.<br>
<br>
</div>
I suspect that this may be linked to a stage where I was connected via a filtered provider that tried to MITM the connection and caused it to close with an authentication error, I'm going to clean it up the same way I described there and turn carddav back on
 but I am wondering if anyone else has experienced similar issues.<br>
<br>
</div>
<div>Is anyone aware of any reason not to just delete everything with syncTarget == carddav (or != local)?<br>
</div>
<div><br>
</div>
Thanks,<br>
</div>
Eli<br>
<br>
</div>
Stats:<br>
987    aggregate<br>
23128    carddav<br>
1419    google<br>
930    local<br>
2    sim<br>
65    telepathy<br>
2    voicemail<br>
3    was_local<br>
<br>
</div>
What does 'was_local' mean?<br>
</div>
</div>
</div>
</div>
</body>
</html>