Exchange does not sync (mail, calendar and contacts)

asked 2016-12-13 13:03:32 +0300

updated 2017-05-18 11:21:27 +0300

jovirkku gravatar image

Hello,

since multiple SFOS versions, I have the problem, that my Exchange accounts do not sync automatically in push-sync mode (always up-to-date). The problems started at least on version 2.0.3.* When I do not sync manually (in settings or in mail app), nothing gets synced (can also be seen in Mail app: "xx hours ago").

At first I thought it is a problem with my Kolab setup on my home server, because in the same time-frame where the problems started, I set up a new Kolab installation and had had problems with previous fresh setups (Kolab and Horde), which went fine after some server-side config-tweaks (PHP, web server, ...).

Two weeks ago, I set up a 2nd Exchange account on my Jolla C to check if this is syncing correctly. This account is from my company and hosted by Microsoft Office 365 service. With this account I have exactly the same problems - no automatic sync. So I think, it has nothing to do with my Kolab setup as this is an official MS Exchange server.

Currently I have set up those two accounts to sync all 5 minutes. I will check if this will work correctly, but for now it indeed seems so.

Edit 14.12.2016: It seems that the sync interval of 5 minutes is working (mostly) correct. Apparently only the allways-up-to-date mode (push) is not working for me...

edit retag flag offensive close delete

Comments

1

After enabling the always up to date mode, can you confirm that the setting is indeed persisted properly, by checking the sailfisheas.Contacts/Calendars/Email-AccountId.xml files within /home/nemo/.cache/msyncd/sync/ directory (needs privileged (i.e., devel-su) access to read).

There should be a key like <key name="sync_always_up_to_date" value="true"/> if it is being persisted properly, otherwise it is a bug in our account settings application, I think.

If it is being set correctly, can you describe precisely the behaviour you expect, and the behaviour you are seeing? E.g., if you modify an Exchange-sourced contact on your device, and save it, does that change not yet upsynced to the Exchange server? Similarly for calendar events in an Exchange-synced calendar? I'm not sure what the semantics for email are, I guess it's IMAP based...

chris.adams ( 2016-12-15 06:33:49 +0300 )edit

Thank you @chris.adams for your detailed response. I've created another account on my device to show you the differences between the two XMLs.

Here you can see the two XMLs.

Both accounts use the same server and credentials, and all other settings are the same but the sync interval. The first one is set to sync all 5 minutes (works), the other one is set to always-up-to-date (does not work).

Thank you for your help!

ejjoman ( 2016-12-16 16:43:48 +0300 )edit
1

Interesting. I think the "sync externally" value should be true, although I will double check with @MattVogt

This bug is tracked internally as JB#37197

chris.adams ( 2016-12-20 03:14:41 +0300 )edit

Thanks for tracking this :)

The "sync externally" value is true for always-up-to-date, which doesn't work, so it seems to be correct for me?

ejjoman ( 2016-12-20 09:52:12 +0300 )edit