src/core/framework/core/3rdparty/ezcomponents/Mail/src/transports/imap/imap_transport.php
protected function getMessageSectionSize( $response )
    {
        $size = 0;
        preg_match( '/\{(.*)\}/', $response, $matches );
        if ( count( $matches ) > 0 )
        {
            $size = (int) $matches[1];
        }
        return $size;
    }
protected function getMessageSectionSize( $response )
    {
        $size = 0;
        preg_match( '/\{(.*)\}/', $response, $matches );
        if ( count( $matches ) > 0 )
        {
            $size = (int) $matches[1];
        }
        return $size;
    }
protected function getMessageSectionSize ( $ response ) { $ size = 0 ; preg_match ( '/\{(.*)\}/' , $ response , $ matches ) ; if ( count ( $ matches ) > 0 ) { $ size = ( int ) $ matches [ 1 ] ; } return $ size ; }
Returns the size of a FETCH section in bytes.

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.

@return int
Returns the size of a FETCH section in bytes .