Prevent deleting inbox

This commit is contained in:
M66B
2020-10-20 14:17:09 +02:00
parent 392d28a2f6
commit e97fb55969
2 changed files with 3 additions and 1 deletions

View File

@@ -1088,6 +1088,8 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
throw ex1;
}
} catch (FolderNotFoundException ex) {
if ("INBOX".equalsIgnoreCase(folder.name))
throw ex;
Log.w(folder.name, ex);
db.folder().deleteFolder(folder.id);
continue;