Browse Source

Sync newest messages first

main
M66B 6 years ago
parent
commit
1369a10d4d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/src/main/java/eu/faircode/email/ServiceSynchronize.java

+ 2
- 2
app/src/main/java/eu/faircode/email/ServiceSynchronize.java View File

@ -1216,9 +1216,9 @@ public class ServiceSynchronize extends LifecycleService {
int updated = 0; int updated = 0;
int unchanged = 0; int unchanged = 0;
Log.i(Helper.TAG, folder.name + " add=" + imessages.length); Log.i(Helper.TAG, folder.name + " add=" + imessages.length);
for (Message imessage : imessages)
for (int i = imessages.length - 1; i >= 0; i--)
try { try {
int status = synchronizeMessage(folder, ifolder, (IMAPMessage) imessage);
int status = synchronizeMessage(folder, ifolder, (IMAPMessage) imessages[i]);
if (status > 0) if (status > 0)
added++; added++;
else if (status < 0) else if (status < 0)


Loading…
Cancel
Save