6.0.0-beta1
7/3/25

[#7122] Horde imports least-important number from Synthesis
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

History
08/26/2008 01:48:27 PM Jan Schneider Comment #4
State ⇒ Resolved
Reply to this comment
Fixed for Turba 2.2.2.
08/26/2008 01:45:47 PM CVS Commit Comment #3 Reply to this comment
Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/turba/lib/Driver.php?r1=1.212&r2=1.213&ty=u
08/26/2008 01:23:40 PM CVS Commit Comment #2 Reply to this comment
08/15/2008 08:06:23 PM Jan Schneider State ⇒ Assigned
Assigned to Jan Schneider
 
07/28/2008 08:07:45 PM deryk-lists (at) mod-soft (dot) com Comment #1
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ Horde imports least-important number from Synthesis
Queue ⇒ Synchronization
Milestone ⇒
Patch ⇒ No
State ⇒ New
Reply to this comment
Consider the following vcard snippet:



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.


Saved Queries