diff --git a/src/Protocol/Imap/Response/Command/FetchCommandResponse.php b/src/Protocol/Imap/Response/Command/FetchCommandResponse.php index 1ab00c9b..a647bebc 100644 --- a/src/Protocol/Imap/Response/Command/FetchCommandResponse.php +++ b/src/Protocol/Imap/Response/Command/FetchCommandResponse.php @@ -62,7 +62,7 @@ public function __toString(): string public static function fromString(string $response): self { $matches = []; - $result = \preg_match('/^([0-9]+) FETCH ((\()?.*?(\))?)\s*$/s', $response, $matches); + $result = \preg_match('/^([0-9]+) FETCH (.*?)$/s', $response, $matches); if ($result !== 1) { throw new \InvalidArgumentException('Not a fetch command'); }