Sanitize the date for mails

This commit is contained in:
Michael 2019-06-13 03:22:15 +00:00
parent bb0cf09057
commit 2ae4371606

View File

@ -46,6 +46,8 @@ class Mail
$msg['guid'] = Item::guidFromUri($msg['uri'], $host);
}
$msg['created'] = (isset($msg['created']) ? DateTimeFormat::utc($msg['created']) : DateTimeFormat::utcNow());
DBA::lock('mail');
if (DBA::exists('mail', ['uri' => $msg['uri'], 'uid' => $msg['uid']])) {