From 3e80acdd011dae848d2002912a735d12c9634d1f Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 12 Apr 2021 08:15:17 +0200 Subject: [PATCH] POP3 cannot create folders --- .../main/java/eu/faircode/email/FragmentFolders.java | 12 ++++++++++-- app/src/main/res/values/strings.xml | 1 + 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentFolders.java b/app/src/main/java/eu/faircode/email/FragmentFolders.java index 110302c5e4..b02e8001d8 100644 --- a/app/src/main/java/eu/faircode/email/FragmentFolders.java +++ b/app/src/main/java/eu/faircode/email/FragmentFolders.java @@ -187,6 +187,12 @@ public class FragmentFolders extends FragmentBase { fabAdd.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { + Boolean pop = (Boolean) v.getTag(); + if (pop != null && pop) { + ToastEx.makeText(v.getContext(), R.string.title_pop_folders, Toast.LENGTH_LONG).show(); + return; + } + Bundle args = new Bundle(); args.putLong("account", account); FragmentFolder fragment = new FragmentFolder(); @@ -291,10 +297,12 @@ public class FragmentFolders extends FragmentBase { else fabError.hide(); - if (account == null || !imap || primary) + if (account == null || primary) fabAdd.hide(); - else + else { + fabAdd.setTag(!imap); fabAdd.show(); + } } }); diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ee6c0ec573..517d12735d 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -758,6 +758,7 @@ Server storage usage: %1$s/%2$s The POP3 protocol supports downloading and deleting messages from the inbox only. POP3 cannot mark messages as read, move messages, etc. POP3 will use more battery power and data than IMAP. So, consider using the IMAP protocol whenever possible. If a POP3 server does not support the UIDL command, the data usage might be high. So, adjust the poll frequency below accordingly. + The POP3 protocol does not support creating folders OAuth is not supported Review Long press an identity to display options, like copy to create alias identities