mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 10:17:18 +00:00
Debug info: hidden messages
This commit is contained in:
parent
8a2a759979
commit
2bd3efa149
2 changed files with 7 additions and 1 deletions
|
@ -490,6 +490,11 @@ public interface DaoMessage {
|
|||
" AND NOT ui_seen")
|
||||
int countUnseen(long folder);
|
||||
|
||||
@Query("SELECT COUNT(*) FROM message" +
|
||||
" WHERE folder = :folder" +
|
||||
" AND ui_hide")
|
||||
int countHidden(long folder);
|
||||
|
||||
@Query("SELECT COUNT(*)" +
|
||||
" FROM message" +
|
||||
" WHERE folder = :folder" +
|
||||
|
|
|
@ -2434,6 +2434,7 @@ public class Log {
|
|||
for (TupleFolderEx folder : folders)
|
||||
if (folder.synchronize) {
|
||||
int unseen = db.message().countUnseen(folder.id);
|
||||
int hidden = db.message().countHidden(folder.id);
|
||||
int notifying = db.message().countNotifying(folder.id);
|
||||
size += write(os, "- " + folder.name + " " +
|
||||
folder.type + (folder.inherited_type == null ? "" : "/" + folder.inherited_type) +
|
||||
|
@ -2443,7 +2444,7 @@ public class Log {
|
|||
" days=" + folder.sync_days + "/" + folder.keep_days +
|
||||
" msgs=" + folder.content + "/" + folder.messages + "/" + folder.total +
|
||||
" ops=" + db.operation().getOperationCount(folder.id, null) +
|
||||
" unseen=" + unseen + " notifying=" + notifying +
|
||||
" unseen=" + unseen + " hidden=" + hidden + " notifying=" + notifying +
|
||||
" " + folder.state +
|
||||
(folder.last_sync == null ? "" : " " + dtf.format(folder.last_sync)) +
|
||||
"\r\n");
|
||||
|
|
Loading…
Reference in a new issue