Connect read-only for poll

This commit is contained in:
Trogel 2017-09-22 22:18:01 +02:00
parent b63ed68838
commit 1c240031bf

View file

@ -801,11 +801,11 @@ public class MessagingController {
*/
Timber.v("SYNC: About to open remote folder %s", folder);
remoteFolder.open(Folder.OPEN_MODE_RW);
if (Expunge.EXPUNGE_ON_POLL == account.getExpungePolicy()) {
Timber.d("SYNC: Expunging folder %s:%s", account.getDescription(), folder);
remoteFolder.expunge();
}
remoteFolder.open(Folder.OPEN_MODE_RO);
}