Added sent date fallback

pull/182/head
M66B 5 years ago
parent de4089ee33
commit a52e56afd8

@ -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 {

Loading…
Cancel
Save