Debug info: outbox count

This commit is contained in:
M66B 2022-03-20 07:44:12 +01:00
parent 40d79f6219
commit 61e9407f62
2 changed files with 7 additions and 1 deletions

View File

@ -462,6 +462,11 @@ public interface DaoMessage {
" AND sender = :sender")
int countSender(long folder, String sender);
@Query("SELECT COUNT(*) FROM message" +
" JOIN folder ON folder.id = message.folder" +
" WHERE folder.account IS NULL")
int countOutbox();
@Query("SELECT COUNT(*) FROM message")
int countTotal();

View File

@ -2075,7 +2075,8 @@ public class Log {
" folders=" + db.folder().countTotal() +
" messages=" + db.message().countTotal() +
" rules=" + db.rule().countTotal() +
" operations=" + db.operation().getOperationCount() +
" ops=" + db.operation().getOperationCount() +
" outbox=" + db.message().countOutbox() +
"\r\n\r\n");
if (schedule) {