1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-25 09:17:58 +00:00

Revert "Prefer Date header over INTERNALDATE"

This reverts commit d1c2a688df.
This commit is contained in:
M66B 2019-11-16 09:49:44 +01:00
parent 124987438b
commit 6b8151bfcf

View file

@ -772,16 +772,6 @@ public class MessageHelper {
}
long getReceived() throws MessagingException {
String date = imessage.getHeader("Date", null);
if (date != null) {
try {
Date received = new MailDateFormat().parse(date);
Log.i("Parsed received=" + received);
return received.getTime();
} catch (java.text.ParseException ignored) {
}
}
Date received = imessage.getReceivedDate();
if (received == null)
received = imessage.getSentDate();