Patch: Sync with Sony Ericsson P1i

Arvid Requate <[email protected]>
Newsgroups gmane.comp.horde.sync
Organization Univention GmbH
Message-ID <[email protected]>
Hello,

the attached patch fixes an issue with the message size in the synchronisation 
with the SE P1i mobile phone. The comment in the patch sugests that it was 
created as a followup to the report 
http://thread.gmane.org/gmane.comp.horde.sync/1842

Regards,
Arvid Requate

-- 
Arvid Requate
Open Source Software Engineer

Univention GmbH
Linux for your business
Mary-Somerville-Str.1
28359 Bremen
Tel. : +49 421 22232-0
Fax : +49 421 22232-99

[email protected]
http://www.univention.de

Geschäftsführer: Peter H. Ganten
HRB 20755 Amtsgericht Bremen
Steuer-Nr.: 71-597-02876

-- 
sync mailing list - Join the hunt: http://horde.org/bounties/#sync
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]
t_SyncML_UV_message_size_p1i.diff (text/x-diff, 859 B)
--- a/horde-webmailer/lib/SyncML/Sync.php	2008-06-14 01:55:42.000000000 +0200
+++ b/horde-webmailer/lib/SyncML/Sync.php	2009-04-08 10:00:03.000000000 +0200
@@ -148,7 +148,9 @@
                  * sends an item with length n and size tag=n+1 and expects us
                  * the accept it. Happens in test 1301.  So ignore this to be
                  * conformant (and wrong). */
-                strlen($item->content) + 1 != $item->size) {
+				/* The Sony Ericsson P1i sends a message with 'n+2':
+				   http://thread.gmane.org/gmane.comp.horde.sync/1842 */
+                strlen($item->content) + 1 != $item->size && strlen($item->content) + 2 != $item->size) {
                 $item->responseCode = RESPONSE_SIZE_MISMATCH;
                 $GLOBALS['backend']->logMessage(
                     'Item size mismatch. Size reported as ' . $item->size
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.