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

Debug info: filters

This commit is contained in:
M66B 2023-03-04 11:30:48 +01:00
parent 14e87e4afa
commit b5b500e2b2

View file

@ -2353,6 +2353,17 @@ public class Log {
filter = nm.getCurrentInterruptionFilter();
}
StringBuilder filters = new StringBuilder();
for (String key : prefs.getAll().keySet())
if (key.startsWith("filter_")) {
Object value = prefs.getAll().get(key);
if (Boolean.TRUE.equals(value))
filters.append(' ')
.append(key.substring(7))
.append('=')
.append(value);
}
size += write(os, "enabled=" + enabled + (enabled ? "" : " !!!") +
" interval=" + pollInterval + "\r\n" +
"metered=" + metered + (metered ? "" : " !!!") +
@ -2373,7 +2384,8 @@ public class Log {
" messages=" + db.message().countTotal() +
" rules=" + db.rule().countTotal() +
" ops=" + db.operation().getOperationCount() +
" outbox=" + db.message().countOutbox() +
" outbox=" + db.message().countOutbox() + "\r\n" +
"filter " + filters +
"\r\n\r\n");
if (schedule) {