Browse Source

Poll user folders

main
M66B 6 years ago
parent
commit
84eeadd2f7
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/src/main/java/eu/faircode/email/ServiceSynchronize.java

+ 2
- 2
app/src/main/java/eu/faircode/email/ServiceSynchronize.java View File

@ -816,7 +816,7 @@ public class ServiceSynchronize extends LifecycleService {
try { try {
Thread.sleep(account.poll_interval * 60 * 1000L); Thread.sleep(account.poll_interval * 60 * 1000L);
if (capIdle) {
if (!EntityFolder.USER.equals(folder.type) && capIdle) {
Log.i(Helper.TAG, folder.name + " request NOOP"); Log.i(Helper.TAG, folder.name + " request NOOP");
ifolder.doCommand(new IMAPFolder.ProtocolCommand() { ifolder.doCommand(new IMAPFolder.ProtocolCommand() {
public Object doCommand(IMAPProtocol p) throws ProtocolException { public Object doCommand(IMAPProtocol p) throws ProtocolException {
@ -851,7 +851,7 @@ public class ServiceSynchronize extends LifecycleService {
noops.add(noop); noops.add(noop);
// Receive folder events // Receive folder events
if (capIdle) {
if (!EntityFolder.USER.equals(folder.type) && capIdle) {
Thread idle = new Thread(new Runnable() { Thread idle = new Thread(new Runnable() {
@Override @Override
public void run() { public void run() {


Loading…
Cancel
Save