Skip non existing folders

pull/147/head
M66B 6 years ago
parent ada6aaa0e8
commit e6ef66cf90

@ -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));

@ -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("\\")) {

Loading…
Cancel
Save