6.0.0-beta6
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
4/10/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#6849] E51 sends X-<category>
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ ._..___.._..__. [__) | _/ | [__] [__)_|_./__._|_| |
Comment
> using current horde 3.2 and modules > > > > My Nokia E51 syncs categories back prepending "X-". 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['backend']->logFile( > > SYNCML_LOGFILE_DATA, > > "\nInput received from client ($contentType):\n$content\n"); > > > > // Always remove client UID. UID will be seperately > passed in XML. > > $content = preg_replace('/(\r\n|\r|\n)UID:.*?(\r\n|\r|\n)/', > > '\1', $content, 1); > > > > /* E51 sends categories as "X-Category". Remove the "X-": */ > > $content = preg_replace('/(\r\n|\r|\n)CATEGORIES:X-/', > '\1CATEGORIES:', > > $content, 1); > > > > return array($content, $contentType); > > } > > > > > > Can't say anything about other Nokia Devices ... > > > > Martin
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers