Merge pull request #3734 from k9mail/fix_expunge_message
Only try to expunge a message if the Backend supports it
This commit is contained in:
commit
0f7d0963f5
1 changed files with 1 additions and 1 deletions
|
@ -971,7 +971,7 @@ public class MessagingController {
|
|||
remoteUidMap = backend.moveMessages(srcFolder, destFolder, uids);
|
||||
}
|
||||
|
||||
if (!isCopy && Expunge.EXPUNGE_IMMEDIATELY == account.getExpungePolicy()) {
|
||||
if (!isCopy && backend.getSupportsExpunge() && account.getExpungePolicy() == Expunge.EXPUNGE_IMMEDIATELY) {
|
||||
Timber.i("processingPendingMoveOrCopy expunging folder %s:%s", account.getDescription(), srcFolder);
|
||||
backend.expungeMessages(srcFolder, uids);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue