diff --git a/overrides/webklex/php-imap/src/Query/Query.php b/overrides/webklex/php-imap/src/Query/Query.php index 14c0764e0..f3673c91b 100644 --- a/overrides/webklex/php-imap/src/Query/Query.php +++ b/overrides/webklex/php-imap/src/Query/Query.php @@ -162,6 +162,9 @@ public function generate_query(): string { } else { if (is_numeric($statement[1])) { $query .= $statement[0] . ' ' . $statement[1]; + } else if ($statement[0] == 'SINCE' && preg_match("#^[0-9]\-[a-zA-Z]\-[0-9]$#", $statement[1])) { + // https://github.com/freescout-help-desk/freescout/issues/4175 + $query .= $statement[0] . ' ' . $statement[1]; } else { $query .= $statement[0] . ' "' . $statement[1] . '"'; }