Browse code

Fix: dates for getMultiple are wrong

Thomas Cataldo authored on 08/02/2019 08:37:14
Showing 1 changed files
... ...
@@ -454,6 +454,9 @@ public class ImapMailboxRecordsService extends BaseMailboxRecordsService impleme
454 454
 		return records.stream().map(v -> {
455 455
 			ItemValue<MailboxItem> adapted = adapt(v);
456 456
 			adapted.value.body = bodiesByGuid.get(v.value.messageBody);
457
+			if (v.value.internalDate != null && adapted.value.body != null) {
458
+				adapted.value.body.date = v.value.internalDate;
459
+			}
457 460
 
458 461
 			if (namespace == Namespace.shared && ranges != null) {
459 462
 				if (UidRanges.contains(ranges, adapted.value.imapUid)) {