http://bugs.meego.com/show_bug.cgi?id=7889
Summary: vCard CELL phone mangling: removal of WORK and HOME
flags
Classification: MeeGo Projects
Product: SyncEvolution
Version: unspecified
Platform: All
Architecture: ---
Status: NEW
Severity: normal
Priority: Undecided
Component: SyncEvolution
AssignedTo: patrick.ohly(a)intel.com
ReportedBy: patrick.ohly(a)intel.com
QAContact: jingke.zhang(a)intel.com
CC: syncevolution-bugs(a)meego.bugs,
syncevolution-default-bugs(a)meego.bugs
Estimated Hours: 0.0
Our Synthesis configuration removes WORK and HOME from CELL numbers if there is
only one such number, because Evolution gets confused by CELL;WORK or
CELL;HOME.
Matthijs Kooijman remarked on this:
------------------------------------
It turns out there is a little script to remove HOME
and WORK tags from cellphone numbers if there is only one cell phone.
However, it actually removes all tags except for CELL, so also PREF.
This patch seems to fix this problem properly:
diff --git a/src/syncevo/configs/scripting/05vcard-evolution.xml
b/src/syncevo/configs/scripting/05vcard-evolution.xml
index be79998..7c04950 100644
--- a/src/syncevo/configs/scripting/05vcard-evolution.xml
+++ b/src/syncevo/configs/scripting/05vcard-evolution.xml
@@ -13,7 +13,8 @@
i = i + 1;
}
if(cell_phones == 1) {
- TEL_FLAGS[wanted] = 0x10;
+ // HOME is 0x1, WORK is 0x2, remove only those flags.
+ TEL_FLAGS[wanted] = TEL_FLAGS[wanted] & ~0x3;
}
// Google sends TYPE=WORK and TYPE=HOME when it means
------------------------------------
If that works for Evolution, then it would be better solution. Need to check.
--
Configure bugmail:
http://bugs.meego.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching someone on the CC list of the bug.