mirror of https://github.com/M66B/FairEmail.git
Allow empty POP3 trash
This commit is contained in:
parent
d8a15daa82
commit
0178351623
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue