diff --git a/src/Controller/Admin/EmailController.php b/src/Controller/Admin/EmailController.php index 37257978a6..1d67bb606d 100644 --- a/src/Controller/Admin/EmailController.php +++ b/src/Controller/Admin/EmailController.php @@ -76,6 +76,10 @@ public function emailLogsAction(Request $request): JsonResponse $filterTerm = implode(' ', $parts); } + if (str_starts_with($filterTerm, '@')) { + $filterTerm = str_replace('@', '', $filterTerm); + } + $condition = '( MATCH (`from`,`to`,`cc`,`bcc`,`subject`,`params`) AGAINST (' . $list->quote($filterTerm) . ' IN BOOLEAN MODE) )'; if ($request->get('documentId')) {