Check folder capability

This commit is contained in:
M66B
2020-08-28 12:02:08 +02:00
parent 1c3ff14945
commit d0c6a86d20
4 changed files with 18 additions and 8 deletions

View File

@@ -1097,6 +1097,9 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
db.folder().setFolderState(folder.id, "connected");
db.folder().setFolderError(folder.id, null);
if (capIdle != MessageHelper.hasCapability(ifolder, "IDLE"))
Log.e("Conflicting IDLE=" + capIdle + " host=" + account.host);
int count = MessageHelper.getMessageCount(ifolder);
db.folder().setFolderTotal(folder.id, count < 0 ? null : count);