ezcMailImapTransport::getMessageSectionSize PHP Méthode

getMessageSectionSize() protected méthode

The section header looks like: * id FETCH (BODY[TEXT] {size} where size is the size in bytes and id is the message number or ID. Example: for " * 2 FETCH (BODY[TEXT] {377}" this function returns 377.
protected getMessageSectionSize ( $response ) : integer
Résultat integer
    protected function getMessageSectionSize($response)
    {
        $size = 0;
        preg_match('/\\{(.*)\\}/', $response, $matches);
        if (count($matches) > 0) {
            $size = (int) $matches[1];
        }
        return $size;
    }