From cb3e9ecea9527e9fa4c89f754abd772ca201c105 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 26 Nov 2018 14:35:01 +0100 Subject: [PATCH] Get all IMAP folder user flags --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 75036c7676..250e5e8dae 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -848,8 +848,7 @@ public class ServiceSynchronize extends LifecycleService { List keywords = new ArrayList<>(); for (String keyword : ifolder.getPermanentFlags().getUserFlags()) - if (!keyword.startsWith("$")) - keywords.add(keyword); + keywords.add(keyword); db.folder().setFolderKeywords(folder.id, DB.Converters.fromStringArray(keywords.toArray(new String[0]))); Log.i(Helper.TAG, account.name + " folder " + folder.name + " flags=" + ifolder.getPermanentFlags());