6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/24/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#7407] Photos: storing in LDAP and broken contact sync
*
Your Email Address
*
Spam protection
Enter the letters below:
. . .. . __ __. |__| ||__|/ `(__ | |\__|| |\__..__)
Comment
> * Horde: 3.3.3 > > * Turba: H3 (2.3.1) > > > > I would like to add a comment on syncing photos with Nokia E51: data > from the phone is parsed ok now, but syncing to the phone still needs > some tweaking: I added the following function in > ./lib/SyncML/Device/Nokia.php > > > > function convertServer2Client($content, $contentType, $database) > > { > > list($content, $contentType) = > > parent::convertServer2Client($content, $contentType); > > > > $content = > preg_replace('/(\r\n|\r|\n)PHOTO;ENCODING=b[^:]*:(.+?)(\r\n|\r|\n)/', > > '\1PHOTO;ENCODING=BASE64:\1\2\1\1', > > $content, 1); > > > > $GLOBALS['backend']->logFile( > > SYNCML_LOGFILE_DATA, > > "\noutput converted for client ($contentType):\n$content\n"); > > return array($content, $contentType); > > } > > > > Reasons: > > a) Nokia expects "BASE64" as encoding string, not "b" (which is base64) > > b) Extra file type info confuses the phone, so strip everything else > before ":" > > c) base64 has to end with an extra blank line (the double \1\1) > > > > > > Finally, the problem 1) of comment #1 of this ticket is still not > solved. I still have to patch the function _emptyAttributeFilter. > > > > cheers, > > 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