From a241a5d3372649dddf7172c60a5cf7eb2e6bc4f5 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 17 Sep 2018 05:06:38 +0000 Subject: [PATCH] Fixed downloading wrong messages --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 546e62c1..c2b519db 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -1404,8 +1404,8 @@ public class ServiceSynchronize extends LifecycleService { for (int j = isub.length - 1; j >= 0; j--) try { Log.i(Helper.TAG, folder.name + " download index=" + (from + j) + " id=" + ids[from + j]); - if (ids[i - j] != null) - downloadMessage(this, folder, ids[i - j], (IMAPMessage) isub[j]); + if (ids[from + j] != null) + downloadMessage(this, folder, ids[from + j], (IMAPMessage) isub[j]); } catch (FolderClosedException ex) { throw ex; } catch (FolderClosedIOException ex) {