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:
parent
16c3a985bf
commit
f1859a7d0a
1 changed files with 16 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue