|
|
@ -1894,24 +1894,33 @@ public class Log {
|
|
|
|
|
|
|
|
|
|
|
|
for (EntityAccount account : accounts) {
|
|
|
|
for (EntityAccount account : accounts) {
|
|
|
|
if (account.synchronize) {
|
|
|
|
if (account.synchronize) {
|
|
|
|
|
|
|
|
int content = 0;
|
|
|
|
|
|
|
|
int messages = 0;
|
|
|
|
|
|
|
|
List<TupleFolderEx> folders = db.folder().getFoldersEx(account.id);
|
|
|
|
|
|
|
|
for (TupleFolderEx folder : folders) {
|
|
|
|
|
|
|
|
content += folder.content;
|
|
|
|
|
|
|
|
messages += folder.messages;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
size += write(os, account.name +
|
|
|
|
size += write(os, account.name +
|
|
|
|
" " + (account.protocol == EntityAccount.TYPE_IMAP ? "IMAP" : "POP") + "/" + account.auth_type +
|
|
|
|
" " + (account.protocol == EntityAccount.TYPE_IMAP ? "IMAP" : "POP") + "/" + account.auth_type +
|
|
|
|
" " + account.host + ":" + account.port + "/" + account.encryption +
|
|
|
|
" " + account.host + ":" + account.port + "/" + account.encryption +
|
|
|
|
" sync=" + account.synchronize +
|
|
|
|
" sync=" + account.synchronize +
|
|
|
|
" exempted=" + account.poll_exempted +
|
|
|
|
" exempted=" + account.poll_exempted +
|
|
|
|
" poll=" + account.poll_interval +
|
|
|
|
" poll=" + account.poll_interval +
|
|
|
|
|
|
|
|
" messages=" + content + "/" + messages +
|
|
|
|
" " + account.state +
|
|
|
|
" " + account.state +
|
|
|
|
(account.last_connected == null ? "" : " " + dtf.format(account.last_connected)) +
|
|
|
|
(account.last_connected == null ? "" : " " + dtf.format(account.last_connected)) +
|
|
|
|
"\r\n");
|
|
|
|
"\r\n");
|
|
|
|
|
|
|
|
|
|
|
|
List<EntityFolder> folders = db.folder().getFolders(account.id, false, false);
|
|
|
|
|
|
|
|
if (folders.size() > 0)
|
|
|
|
if (folders.size() > 0)
|
|
|
|
Collections.sort(folders, folders.get(0).getComparator(context));
|
|
|
|
Collections.sort(folders, folders.get(0).getComparator(context));
|
|
|
|
for (EntityFolder folder : folders)
|
|
|
|
for (TupleFolderEx folder : folders)
|
|
|
|
if (folder.synchronize)
|
|
|
|
if (folder.synchronize)
|
|
|
|
size += write(os, "- " + folder.name + " " + folder.type +
|
|
|
|
size += write(os, "- " + folder.name + " " + folder.type +
|
|
|
|
" poll=" + folder.poll + "/" + folder.poll_factor +
|
|
|
|
" poll=" + folder.poll + "/" + folder.poll_factor +
|
|
|
|
" days=" + folder.sync_days + "/" + folder.keep_days +
|
|
|
|
" days=" + folder.sync_days + "/" + folder.keep_days +
|
|
|
|
|
|
|
|
" msgs=" + folder.content + "/" + folder.messages +
|
|
|
|
" " + folder.state +
|
|
|
|
" " + folder.state +
|
|
|
|
(folder.last_sync == null ? "" : " " + dtf.format(folder.last_sync)) +
|
|
|
|
(folder.last_sync == null ? "" : " " + dtf.format(folder.last_sync)) +
|
|
|
|
"\r\n");
|
|
|
|
"\r\n");
|
|
|
|