From d9f6a5822993162e4d61be1b53fdb9aceef214da Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 9 May 2019 20:52:52 +0000 Subject: [PATCH] Mail: Set the "reply" value when it is a reply --- src/Model/Mail.php | 4 ++++ 1 file changed, 4 insertions(+) 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)) { -- 2.39.5