Get all IMAP folder user flags

pull/146/head
M66B 6 years ago
parent 1d62bc5978
commit cb3e9ecea9

@ -848,8 +848,7 @@ public class ServiceSynchronize extends LifecycleService {
List<String> keywords = new ArrayList<>(); List<String> keywords = new ArrayList<>();
for (String keyword : ifolder.getPermanentFlags().getUserFlags()) 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]))); 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()); Log.i(Helper.TAG, account.name + " folder " + folder.name + " flags=" + ifolder.getPermanentFlags());

Loading…
Cancel
Save