1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 01:36:55 +00:00

Set folder read/write

This commit is contained in:
M66B 2020-09-21 22:35:26 +02:00
parent 130ef9d1e1
commit ad82c3c15b

View file

@ -1329,6 +1329,8 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
ifolder = iservice.getStore().getFolder(folder.name);
try {
ifolder.open(Folder.READ_WRITE);
if (ifolder instanceof IMAPFolder)
db.folder().setFolderReadOnly(folder.id, ((IMAPFolder) ifolder).getUIDNotSticky());
} catch (ReadOnlyFolderException ex) {
Log.w(folder.name + " read only");
ifolder.open(Folder.READ_ONLY);