|
|
@ -963,11 +963,19 @@ public class EmailService implements AutoCloseable {
|
|
|
|
if (ex.getMessage() != null &&
|
|
|
|
if (ex.getMessage() != null &&
|
|
|
|
ex.getMessage().contains("LIST processing failed")) {
|
|
|
|
ex.getMessage().contains("LIST processing failed")) {
|
|
|
|
Log.w(ex);
|
|
|
|
Log.w(ex);
|
|
|
|
folders.add(new EntityFolder("Inbox", EntityFolder.INBOX));
|
|
|
|
|
|
|
|
} else
|
|
|
|
} else
|
|
|
|
throw ex;
|
|
|
|
throw ex;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
boolean inbox = false;
|
|
|
|
|
|
|
|
for (EntityFolder folder : folders)
|
|
|
|
|
|
|
|
if (EntityFolder.INBOX.equals(folder.type)) {
|
|
|
|
|
|
|
|
inbox = true;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!inbox)
|
|
|
|
|
|
|
|
folders.add(new EntityFolder("Inbox", EntityFolder.INBOX));
|
|
|
|
|
|
|
|
|
|
|
|
return folders;
|
|
|
|
return folders;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|