mirror of https://github.com/M66B/FairEmail.git
Added sent date fallback
This commit is contained in:
parent
de4089ee33
commit
a52e56afd8
|
@ -1309,8 +1309,10 @@ public class MessageHelper {
|
||||||
Long getSent() throws MessagingException {
|
Long getSent() throws MessagingException {
|
||||||
ensureMessage(false);
|
ensureMessage(false);
|
||||||
|
|
||||||
Date date = imessage.getSentDate();
|
Date sent = imessage.getSentDate();
|
||||||
return (date == null ? null : date.getTime());
|
if (sent == null)
|
||||||
|
sent = imessage.getReceivedDate();
|
||||||
|
return (sent == null ? new Date() : sent).getTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
String getHeaders() throws MessagingException {
|
String getHeaders() throws MessagingException {
|
||||||
|
|
Loading…
Reference in New Issue