Sanitize the date for mails
This commit is contained in:
parent
bb0cf09057
commit
2ae4371606
1 changed files with 2 additions and 0 deletions
|
@ -46,6 +46,8 @@ class Mail
|
||||||
$msg['guid'] = Item::guidFromUri($msg['uri'], $host);
|
$msg['guid'] = Item::guidFromUri($msg['uri'], $host);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$msg['created'] = (isset($msg['created']) ? DateTimeFormat::utc($msg['created']) : DateTimeFormat::utcNow());
|
||||||
|
|
||||||
DBA::lock('mail');
|
DBA::lock('mail');
|
||||||
|
|
||||||
if (DBA::exists('mail', ['uri' => $msg['uri'], 'uid' => $msg['uid']])) {
|
if (DBA::exists('mail', ['uri' => $msg['uri'], 'uid' => $msg['uid']])) {
|
||||||
|
|
Loading…
Reference in a new issue