Summary | Horde imports least-important number from Synthesis |
Queue | Synchronization |
Type | Enhancement |
State | Resolved |
Priority | 1. Low |
Owners | jan (at) horde (dot) org |
Requester | deryk-lists (at) mod-soft (dot) com |
Created | 07/28/2008 (6184 days ago) |
Due | |
Updated | 08/26/2008 (6155 days ago) |
Assigned | 08/15/2008 (6166 days ago) |
Resolved | 08/26/2008 (6155 days ago) |
Milestone | |
Patch | No |
State ⇒ Resolved
http://cvs.horde.org/diff.php/turba/lib/Driver.php?r1=1.212&r2=1.213&ty=u
http://cvs.horde.org/diff.php/turba/lib/tests/tohash.phpt?r1=1.9&r2=1.10&ty=u
Assigned to Jan Schneider
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ Horde imports least-important number from Synthesis
Queue ⇒ Synchronization
Milestone ⇒
Patch ⇒ No
State ⇒ New
TEL;HOME;VOICE;X-Synthesis-Ref1:(123) 456-7890
TEL;WORK;VOICE;X-Synthesis-Ref1:(234) 567-8901
TEL;WORK;VOICE;X-Synthesis-Ref2:(345) 678-9012
TEL;CELL;VOICE;X-Synthesis-Ref1:(456) 789-0123
Synthesis has listed the primary work number first. However, Horde
will insert the secondary work number since it's parsed after the
primary number.
This behaviour is likely not specific to Synthesis.
The following (rough) code can be used in
lib/syncml/device/synthesis.php to drop secondary values:
// ... delete X-Synthesis-Ref1 tag
$content = preg_replace('/;X-Synthesis-Ref1(:|;)/', '\1', $content);
// ... and remove any other *values* containing X-Synthesis-Ref*
$content =
preg_replace('/(\r\n|\r|\n).*;X-Synthesis-Ref\d+(:|;).*(\r\n|\r|\n)/',
'\1', $content);
// ... and finally delete all X-Synthesis-* tags
$content = preg_replace('/;X-Synthesis-.*(:|;)(.*)/', '\1', $content);
This works for Synthesis (tested with version v3.0.2.22 for Windows
Mobile) but it isn't a comprehensive fix.