1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-29 11:15:51 +00:00

Refresh sync parameters

This commit is contained in:
M66B 2018-12-03 08:58:42 +01:00
parent 22628aef78
commit 3a7a181907

View file

@ -1839,6 +1839,9 @@ public class ServiceSynchronize extends LifecycleService {
private void synchronizeMessages(EntityAccount account, EntityFolder folder, IMAPFolder ifolder, ServiceState state) throws MessagingException, IOException {
DB db = DB.getInstance(this);
try {
// Refresh parameters
folder = db.folder().getFolder(folder.id);
Log.v(Helper.TAG, folder.name + " start sync after=" + folder.sync_days + "/" + folder.keep_days);
db.folder().setFolderState(folder.id, "syncing");