<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>E51 sends X-&lt;category&gt;</title> 
  <pubDate>Fri, 10 Apr 2026 18:27:27 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/6849</link> 
  <atom:link rel="self" type="application/rss+xml" title="E51 sends X-&lt;category&gt;" href="https://bugs.horde.org/ticket/6849/rss" /> 
  <description>E51 sends X-&lt;category&gt;</description> 
 
   
   
  <item> 
   <title>using current horde 3.2 and modules



My Nokia E51 syncs ca</title> 
   <description>using current horde 3.2 and modules



My Nokia E51 syncs categories back prepending &quot;X-&quot;. Found some code in P800.php for stripping and added it to Nokia.php: solved the problem. The following function is based on the one from SyncML_Device extended by the preg_replace from P800.php.



class SyncML_Device_Nokia extends SyncML_Device { 



        function convertClient2Server($content, $contentType) 

        { 

            $GLOBALS[&#039;backend&#039;]-&gt;logFile( 

                SYNCML_LOGFILE_DATA, 

                &quot;\nInput received from client ($contentType):\n$content\n&quot;); 

 

            // Always remove client UID. UID will be seperately passed in XML. 

            $content = preg_replace(&#039;/(\r\n|\r|\n)UID:.*?(\r\n|\r|\n)/&#039;, 

                                    &#039;\1&#039;, $content, 1); 

 

            /* E51 sends categories as &quot;X-Category&quot;. Remove the &quot;X-&quot;: */ 

            $content = preg_replace(&#039;/(\r\n|\r|\n)CATEGORIES:X-/&#039;, &#039;\1CATEGORIES:&#039;, 

                                    $content, 1); 

         

            return array($content, $contentType); 

        } 





Can&#039;t say anything about other Nokia Devices ...



     Martin</description> 
   <pubDate>Thu, 05 Jun 2008 20:04:27 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6849#t46010</link> 
  </item> 
   
  <item> 
   <title>Please provide some example data that the phone sends.</title> 
   <description>Please provide some example data that the phone sends.</description> 
   <pubDate>Fri, 06 Jun 2008 21:03:24 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6849#t46073</link> 
  </item> 
   
  <item> 
   <title>creating a task with category testCategory in nag and syncin</title> 
   <description>creating a task with category testCategory in nag and syncing to E51 



Output received from backend (text/x-vcalendar):

BEGIN:VCALENDAR

VERSION:1.0

PRODID:-//The Horde Project//Nag H3 (2.2)//EN

METHOD:PUBLISH

BEGIN:VTODO

UID:20080606235012.955379qzh8h1xfcw@xxxxxxxxxxx

ORGANIZER:xxxxxxxxxxx

SUMMARY:testSync

PRIORITY:3

DUE:20080707T210000Z

STATUS:NEEDS ACTION

CATEGORIES:testCategory

DCREATED:20080606T215012Z

LAST-MODIFIED:20080606T215012Z

END:VTODO

END:VCALENDAR





output converted for client (text/x-vcalendar):

BEGIN:VCALENDAR

VERSION:1.0

PRODID:-//The Horde Project//Nag H3 (2.2)//EN

METHOD:PUBLISH

BEGIN:VTODO

ORGANIZER:xxxxxxxxxxx

SUMMARY:testSync

PRIORITY:3

DUE:20080707T230000

STATUS:NEEDS ACTION

CATEGORIES:testCategory

DCREATED:20080606T235012

LAST-MODIFIED:20080606T235012

END:VTODO

END:VCALENDAR





Changed priority on E51 and syncing back to nag



Input received from client (text/x-vcalendar):

BEGIN:VCALENDAR

VERSION:1.0

BEGIN:VTODO

UID:06062008215106383375-0

SUMMARY:testSync

DUE:20080707T230000

X-EPOCTODOLIST:TODO

STATUS:NEEDS ACTION

X-EPOCAGENDAENTRYTYPE:TODO

CLASS:PUBLIC

SEQUENCE:0

X-METHOD:NONE

LAST-MODIFIED:20080606T215329Z

CATEGORIES:X-testCategory

PRIORITY:1

X-SYMBIAN-LUID:315

END:VTODO

END:VCALENDAR



Category changed to X-testCategory</description> 
   <pubDate>Fri, 06 Jun 2008 22:02:32 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6849#t46074</link> 
  </item> 
   
  <item> 
   <title>I&#039;m hesitating to apply this to all Nokia phones, and I&#039;m wo</title> 
   <description>I&#039;m hesitating to apply this to all Nokia phones, and I&#039;m wondering why the phone is doing this anyway. Can you provide the devinf.txt log file, so we can limit this to a single model?</description> 
   <pubDate>Fri, 13 Jun 2008 21:16:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6849#t46438</link> 
  </item> 
   
  <item> 
   <title>&gt; Can you provide the devinf.txt 



yes,  of course ... 


</title> 
   <description>&gt; Can you provide the devinf.txt 



yes,  of course ... 



    Martin</description> 
   <pubDate>Sun, 15 Jun 2008 18:37:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6849#t46508</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/framework/SyncML/SyncML/Device/Nokia.php?r1=1.14&amp;r2=1.15&amp;ty=u
http://cvs.horde.org/diff.php/framework/SyncML/SyncML/Device/P800.php?r1=1.25&amp;r2=1.26&amp;ty=u</description> 
   <pubDate>Mon, 07 Jul 2008 17:30:50 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6849#t47360</link> 
  </item> 
   
  <item> 
   <title>Please try what I committed. You probably need to get the co</title> 
   <description>Please try what I committed. You probably need to get the complete SyncML package since I changed more than just this single commit.</description> 
   <pubDate>Mon, 07 Jul 2008 17:31:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6849#t47361</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
