Allow empty POP3 trash

This commit is contained in:
M66B 2020-04-13 12:06:18 +02:00
parent d8a15daa82
commit 0178351623
1 changed files with 2 additions and 1 deletions

View File

@ -6452,7 +6452,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
for (Long id : ids) { for (Long id : ids) {
EntityMessage message = db.message().getMessage(id); EntityMessage message = db.message().getMessage(id);
if (message != null && if (message != null &&
(message.uid != null || !TextUtils.isEmpty(message.msgid))) { (account.protocol == EntityAccount.TYPE_POP ||
message.uid != null || !TextUtils.isEmpty(message.msgid))) {
Log.i("Deleting account=" + account.id + " folder=" + folder.id + " message=" + message.id); Log.i("Deleting account=" + account.id + " folder=" + folder.id + " message=" + message.id);
EntityOperation.queue(context, message, EntityOperation.DELETE); EntityOperation.queue(context, message, EntityOperation.DELETE);
} }