Debug info: outbox count

pull/207/head
M66B 3 years ago
parent 40d79f6219
commit 61e9407f62

@ -462,6 +462,11 @@ public interface DaoMessage {
" AND sender = :sender") " AND sender = :sender")
int countSender(long folder, String 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") @Query("SELECT COUNT(*) FROM message")
int countTotal(); int countTotal();

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

Loading…
Cancel
Save