1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 10:17:18 +00:00

Debug info: unified folders

This commit is contained in:
M66B 2023-03-04 15:26:46 +01:00
parent 16c3a985bf
commit f1859a7d0a

View file

@ -2405,6 +2405,22 @@ public class Log {
size += write(os, "\r\n");
}
Map<Long, EntityFolder> unified = new HashMap<>();
for (EntityFolder folder : db.folder().getFoldersByType(EntityFolder.INBOX))
unified.put(folder.id, folder);
for (EntityFolder folder : db.folder().getFoldersUnified(null, false))
unified.put(folder.id, folder);
for (Long fid : unified.keySet()) {
EntityFolder folder = unified.get(fid);
EntityAccount account = db.account().getAccount(folder.account);
size += write(os, String.format("%s/%s:%s sync=%b unified=%b\r\n",
(account == null ? null : account.name),
folder.name, folder.type, folder.synchronize, folder.unified));
}
size += write(os, "\r\n");
for (EntityAccount account : accounts) {
if (account.synchronize) {
int content = 0;