[sync] Multi device activesync in practice

Chris Smith CSmith at mbasys.co.uk
Fri Jun 28 10:50:34 UTC 2013


-----Original Message-----
From: sync-bounces at lists.horde.org [mailto:sync-bounces at lists.horde.org] On Behalf Of Michael J Rubinsky
Sent: 27 June 2013 17:32
To: sync at lists.horde.org
Subject: Re: [sync] Multi device activesync in practice


Quoting Chris Smith <CSmith at mbasys.co.uk>:

> Hi All!
>
>
>
> I can't believe the effort, thank you all so much!! Nearly a year 
> after my first attempt, now activesync runs (nearly) perfectly on all 
> my devices (Android, iOS, BB). Thanks again J
>
>
>
> I have noticed a few differences between my expectations/hopes/dreams 
> and the actual synchronisation of the devices, I wondered if anyone 
> please had any suggestions/thoughts?
>
>
>
> 1.	All devices: Mail from the same domain, or the domain of any
> "identities" does not get synced to the device.
> 	E.g: user1 at doma.in receives mail from user2 at doma.in. IMP shows the 
> mail but devices do not.
> 	Is this by design? I've had a brief look over /usr/share/php/Horde 
> and within ~/lib but initially found nothing obvious.

If the email is in the INBOX (or any mailbox being pushed), of user1, then it should be synched. The actual To: header does not make a difference.

Hi Mike,
Again, thanks for your thoughtful and diligent work! 
Haha, my apologies- I've actually fallen right into the Cyrus trap! There are two 'entry points', the workaround was in place for one, but not for the other. [For the mail list, see http://wiki.horde.org/ActiveSync/KnownIssues]

> 2.	Marking a message as read though mail client/IMP will always
> cause the next email sync to fail (perhaps more accurately, return 0 
> changes to the device). Even if there are other unread messages 
> received by the MDA since the last sync. I'd hope that, regardless of 
> the state of the mailbox(es), mail would always be sent to the device.


> 3.	Samsung Galaxy S2: Mail delivered to both the inbox and a
> subfolder (same message, same time) is duplicated on the device. The 
> INBOX copy shows up once (clear when you mark the message as read), 
> but the subfolder copy shows up 3 times (again, clear when you mark 
> the message as read).

I'd need to see a synclog to determine if this is a server or client issue.

In fact, it looks like they were all caused by the IMAP bug- this was the clue (fresh sync, fresh log ;) :
2013-06-28T09:48:05+00:00 INFO: [18972] Horde_Core_ActiveSync_Driver::getMessage(INBOX, 4)
2013-06-28T09:48:05+00:00 INFO: Sending PLAINTEXT Message.
2013-06-28T09:48:05+00:00 INFO: Validating UTF-8 data coming from iso-8859-1
2013-06-28T09:48:05+00:00 DEBUG: [18972] O      <Add>
...
2013-06-28T09:48:05+00:00 DEBUG: [18972] O      </Add>
2013-06-28T09:48:05+00:00 INFO: [18972] Updating state during change
2013-06-28T09:48:05+00:00 INFO: [18972] Horde_Core_ActiveSync_Driver::getMessage(INBOX, 5)
2013-06-28T09:48:05+00:00 ERR: Mail server closed the connection unexpectedly.
2013-06-28T09:48:05+00:00 ERR: Unknown backend error skipping message: Mail server closed the connection unexpectedly.
2013-06-28T09:48:05+00:00 INFO: [18972] Updating state during change
2013-06-28T09:48:05+00:00 INFO: [18972] Horde_Core_ActiveSync_Driver::getMessage(INBOX, 6)
2013-06-28T09:48:10+00:00 ERR: Unable to fetch message: IMAP error reported by server.
2013-06-28T09:48:10+00:00 ERR: IMAP error reported by server.

After correcting the IMAP bug, I've just deleted the S2 from Horde > Prefs > Activesync Devices and on the resync it cleared itself up.

Unbelievable! I can't thank you enough for such precise and excellent work.
Enjoy your weekend!

--
mike

The Horde Project (www.horde.org)
mrubinsk at horde.org

**********************************************************************
MBA Systems Ltd, Staple House, Staple Gardens,Winchester,Hants. SO23 8SR. Tel: +44(0)1962 841494
Registered No: GB679363582
This email and any files transmitted with it are confidential and intended solely for the addressee(s) and may be legally privileged and/or confidential. If you have received this email in error please destroy it and contact the sender, via our switchboard on +44(0)1962 841494 or via return e-mail. You should not copy, forward or use the contents, attachments or information in any way.
Any unauthorised use or disclosure may be unlawful. MBA Systems Ltd gives no warranty as to the accuracy or completeness of this e-mail after it is sent over the internet, and accepts no responsibility for changes made after it was sent. Any opinion expressed in this e-mail may be personal to the author and may not necessarily reflect the opinions of MBA Systems Ltd or its affiliates.
This footnote also acknowledges that this email message has been swept by:
MIMEsweeper for the presence of computer viruses.
www.clearswift.com
**********************************************************************



More information about the sync mailing list