1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-24 02:12:15 -05:00

only store an internalDate if we actually get it from the server; If we

don't have an internaldate, use the sentdate for sorting comparisons.
This commit is contained in:
Jesse Vincent 2010-07-10 16:40:34 +00:00
parent 52ff331771
commit 61b25c8760
2 changed files with 6 additions and 1 deletions

View File

@ -2508,6 +2508,11 @@ public class MessageList
LocalMessage message = (LocalMessage) m;
Date date = message.getSentDate();
this.compareDate = message.getInternalDate();
if (this.compareDate == null)
{
this.compareDate = message.getSentDate();
}
this.folder = folder;
if (Utility.isDateToday(date))

View File

@ -1772,7 +1772,7 @@ public class LocalStore extends Store implements Serializable
cv.put("reply_to_list", Address.pack(message.getReplyTo()));
cv.put("attachment_count", attachments.size());
cv.put("internal_date", message.getInternalDate() == null
? System.currentTimeMillis() : message.getInternalDate().getTime());
? null : message.getInternalDate().getTime());
String messageId = message.getMessageId();
if (messageId != null)
{