checkRestartThreshold example

// ignore this exception as it probably means that the server error was final                 }
            }

            throw $e;
        }

        if ($this->mtaResult && $messageId = $this->parseMessageId($this->mtaResult)) {
            $message->setMessageId($messageId);
        }

        $this->checkRestartThreshold();

        return $message;
    }

    protected function parseMessageId(string $mtaResult): string
    {
        $regexps = [
            '/250 Ok (?P<id>[0-9a-f-]+)\r?$/mis',
            '/250 Ok:? queued as (?P<id>[A-Z0-9]+)\r?$/mis',
        ];
        $matches = [];
        
Home | Imprint | This part of the site doesn't use cookies.