Skip non existing folders

This commit is contained in:
M66B 2018-12-23 11:07:24 +00:00
parent ada6aaa0e8
commit e6ef66cf90
2 changed files with 2 additions and 2 deletions

View File

@ -487,7 +487,7 @@ public class FragmentAccount extends FragmentEx {
String[] attrs = ((IMAPFolder) ifolder).getAttributes();
Log.i(Helper.TAG, ifolder.getFullName() + " attrs=" + TextUtils.join(" ", attrs));
for (String attr : attrs) {
if ("\\Noselect".equals(attr))
if ("\\Noselect".equals(attr) || "\\NonExistent".equals(attr))
selectable = false;
if (attr.startsWith("\\")) {
int index = EntityFolder.SYSTEM_FOLDER_ATTR.indexOf(attr.substring(1));

View File

@ -1937,7 +1937,7 @@ public class ServiceSynchronize extends LifecycleService {
String[] attrs = ((IMAPFolder) ifolder).getAttributes();
Log.i(Helper.TAG, fullName + " attrs=" + TextUtils.join(" ", attrs));
for (String attr : attrs) {
if ("\\Noselect".equals(attr))
if ("\\Noselect".equals(attr) || "\\NonExistent".equals(attr))
selectable = false;
if (attr.startsWith("\\")) {