1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-22 14:11:00 +00:00

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(); String[] attrs = ((IMAPFolder) ifolder).getAttributes();
Log.i(Helper.TAG, ifolder.getFullName() + " attrs=" + TextUtils.join(" ", attrs)); Log.i(Helper.TAG, ifolder.getFullName() + " attrs=" + TextUtils.join(" ", attrs));
for (String attr : attrs) { for (String attr : attrs) {
if ("\\Noselect".equals(attr)) if ("\\Noselect".equals(attr) || "\\NonExistent".equals(attr))
selectable = false; selectable = false;
if (attr.startsWith("\\")) { if (attr.startsWith("\\")) {
int index = EntityFolder.SYSTEM_FOLDER_ATTR.indexOf(attr.substring(1)); 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(); String[] attrs = ((IMAPFolder) ifolder).getAttributes();
Log.i(Helper.TAG, fullName + " attrs=" + TextUtils.join(" ", attrs)); Log.i(Helper.TAG, fullName + " attrs=" + TextUtils.join(" ", attrs));
for (String attr : attrs) { for (String attr : attrs) {
if ("\\Noselect".equals(attr)) if ("\\Noselect".equals(attr) || "\\NonExistent".equals(attr))
selectable = false; selectable = false;
if (attr.startsWith("\\")) { if (attr.startsWith("\\")) {