Added sent date fallback

This commit is contained in:
M66B 2020-06-27 21:31:12 +02:00
parent de4089ee33
commit a52e56afd8
1 changed files with 4 additions and 2 deletions

View File

@ -1309,8 +1309,10 @@ public class MessageHelper {
Long getSent() throws MessagingException {
ensureMessage(false);
Date date = imessage.getSentDate();
return (date == null ? null : date.getTime());
Date sent = imessage.getSentDate();
if (sent == null)
sent = imessage.getReceivedDate();
return (sent == null ? new Date() : sent).getTime();
}
String getHeaders() throws MessagingException {