1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-29 11:15:51 +00:00

Allow empty POP3 trash

This commit is contained in:
M66B 2020-04-13 12:06:18 +02:00
parent d8a15daa82
commit 0178351623

View file

@ -6452,7 +6452,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
for (Long id : ids) {
EntityMessage message = db.message().getMessage(id);
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);
EntityOperation.queue(context, message, EntityOperation.DELETE);
}