diff --git a/src/Model/Mail.php b/src/Model/Mail.php index 30191edae6..9f3682573e 100644 --- a/src/Model/Mail.php +++ b/src/Model/Mail.php @@ -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']])) {