mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-15 00:21:10 +00:00
Debug: folder status
This commit is contained in:
parent
6b4e92fe8d
commit
110f1ac873
1 changed files with 14 additions and 0 deletions
|
@ -67,6 +67,7 @@ import com.sun.mail.imap.IMAPStore;
|
|||
import com.sun.mail.imap.protocol.FLAGS;
|
||||
import com.sun.mail.imap.protocol.FetchResponse;
|
||||
import com.sun.mail.imap.protocol.IMAPProtocol;
|
||||
import com.sun.mail.imap.protocol.Status;
|
||||
import com.sun.mail.imap.protocol.UID;
|
||||
import com.sun.mail.imap.protocol.UIDSet;
|
||||
import com.sun.mail.pop3.POP3Folder;
|
||||
|
@ -3642,6 +3643,19 @@ class Core {
|
|||
final List<Long> uids = db.message().getUids(folder.id, sync_kept || force ? null : sync_time);
|
||||
Log.i(folder.name + " local count=" + uids.size());
|
||||
|
||||
if (Log.isDebugLogLevel())
|
||||
try {
|
||||
Status status = (Status) ifolder.doCommand(new IMAPFolder.ProtocolCommand() {
|
||||
@Override
|
||||
public Object doCommand(IMAPProtocol protocol) throws ProtocolException {
|
||||
return protocol.status(ifolder.getFullName(), null);
|
||||
}
|
||||
});
|
||||
Log.i(folder.name + " status total=" + status.total);
|
||||
} catch (Throwable ex) {
|
||||
Log.w(ex);
|
||||
}
|
||||
|
||||
// Reduce list of local uids
|
||||
SearchTerm dateTerm = account.use_date
|
||||
? new SentDateTerm(ComparisonTerm.GE, new Date(sync_time))
|
||||
|
|
Loading…
Add table
Reference in a new issue