Workaround server bug

mail.de
This commit is contained in:
M66B 2019-10-08 12:25:09 +02:00
parent cb42044851
commit e0c7abdad4
1 changed files with 4 additions and 2 deletions

View File

@ -734,8 +734,10 @@ class Core {
} }
if (folder.id.equals(message.folder)) { if (folder.id.equals(message.folder)) {
message.uid = findUid(ifolder, message.msgid, true); // Some providers do not list the new message yet
if (message.uid != null) { Long newuid = findUid(ifolder, message.msgid, true);
if (message.uid != null && newuid != null && newuid > message.uid) {
message.uid = newuid;
Log.i(folder.name + " appended uid=" + message.uid); Log.i(folder.name + " appended uid=" + message.uid);
db.message().setMessageUid(message.id, message.uid); db.message().setMessageUid(message.id, message.uid);