[bug] Manual off-peak email synchronisation settings are not respected
I have two IMAP email accounts on two different servers. I have set them up similarly with "personalized" sync schedule, such that they sync every hour during peak period and "manually" off-peak, so that if I do nothing they should just not sync off-peak and I should have no notification. In spite of this the two accounts perform one spurious sync each day after midnight (as can be seen on the 4th line of the attached log). It is not very pleasant to receive a notification in the middle of the night when you expect your phone to be perfectly quiet. My guess is that there is something wrong in the logic of the sync algorithm related to the date changing.
I attach the settings of one of the accounts and the corresponding log. The second account has different start and stop peak hours, but the problem is just the same.
[nemo@Jolla ~]$ su-devel cat .cache/msyncd/sync/syncemail-111.xml
<?xml version="1.0" encoding="UTF-8"?> <profile type="sync" name="syncemail-111">
<key value="111" name="accountid"/>
<key value="online" name="destinationtype"/>
<key value="syncemail-XXXXX" name="displayname"/>
<key value="true" name="enabled"/>
<key value="true" name="hidden"/>
<key value="true" name="scheduled"/>
<key value="true" name="sync_always_up_to_date"/>
<key value="false" name="sync_externally"/>
<key value="30" name="sync_since_days_past"/>
<key value="true" name="use_accounts"/>
<profile type="client" name="syncemail">
<key value="from-remote" name="Sync Direction"/>
</profile>
<schedule interval="0" syncconfiguredtime="" enabled="true" days="5,2,3,1,6,7,4" time="">
<rush end="17:00:00" interval="60" enabled="true" externalsync="false" days="5,2,3,1,4" begin="09:00:00"/>
</schedule>
[nemo@Jolla ~]$ su-devel cat .cache/msyncd/sync/logs/syncemail-111.log.xml
<?xml version="1.0" encoding="UTF-8"?> <synclog name="syncemail-111">
<syncresults minorcode="0" scheduled="true" time="2016-01-07T15:02:12" majorcode="0"/>
<syncresults minorcode="0" scheduled="true" time="2016-01-07T15:17:23" majorcode="0"/>
<syncresults minorcode="0" scheduled="true" time="2016-01-07T16:17:14" majorcode="0"/>
<syncresults minorcode="0" scheduled="true" time="2016-01-08T00:17:18" majorcode="0"/>
<syncresults minorcode="0" scheduled="true" time="2016-01-08T09:17:22" majorcode="0"/>
Edit: Bug still present in 2.1.0.9
You know, you could silence the phone at night? Or turn of connections? That would also save battery (and according to some people it might save you from cancer as well). There is also the Situations app which you could use to turn sounds or connections on/off at certain times.
jollailija ( 2016-01-08 15:34:10 +0200 )editOh, you're right, thanks! I had not though about that ;). More seriously, I guess you understand this is meant to be a well-documented bug report. I have not found any other obvious way/place to report bugs... is there one? Is this report going to be forwarded to a person in charge? Is the code available somewhere, so that I can fix it for myself and propose a patch?
slowcyclist ( 2016-01-08 21:45:53 +0200 )editI just noticed this as well. In my case the account was previously set up to be always up to date, and I changed it to be always up to date during peak but sync manually during off-peak.
@jollailija: you might want people to be able to contact you in the middle of the night in case of emergency but not want to wake up from newsletters sent at 3 in the morning. If the sound is off, you won't hear your phone ring. If connections are off, you won't receive any messages sent through things like WhatsApp. Also, this is clearly a bug. If you set an account to only synchronise when manually prompted, it shouldn't start synchronising on its own, ever.
nthn ( 2016-09-05 10:12:31 +0200 )editSounds like one I reported earlier could be related to this. Exchange Sync schedule issue
coley ( 2016-09-05 15:17:09 +0200 )editI can confirm this as well. From my corresponding files as in OP:
<schedule days="2,3,1,6,7,4,5" enabled="true" interval="0" syncconfiguredtime="" time=""> <rush begin="08:30:00" days="2,3,1,6,7,4,5" enabled="true" end="22:00:00" externalsync="true" interval="15"> </rush></schedule>
<syncresults majorcode="0" minorcode="0" scheduled="true" time="2017-03-16T22:06:45"></syncresults>
Mohjive ( 2017-03-17 09:00:44 +0200 )edit