diff --git a/src/Model/Mail.php b/src/Model/Mail.php index 4d5c1946b3..a9e57812ac 100644 --- a/src/Model/Mail.php +++ b/src/Model/Mail.php @@ -29,6 +29,10 @@ class Mail { $user = User::getById($msg['uid']); + if (!isset($msg['reply'])) { + $msg['reply'] = DBA::exists('mail', ['parent-uri' => $msg['parent-uri']]); + } + if (empty($msg['convid'])) { $mail = DBA::selectFirst('mail', ['convid'], ["`convid` != 0 AND `parent-uri` = ?", $msg['parent-uri']]); if (DBA::isResult($mail)) {