public function finish()
    {
        $digest = new ezcMailRfc822Digest( $this->mailParser->finish() );
        ezcMailPartParser::parsePartHeaders( $this->headers, $digest );
        $digest->size = $this->size;
        return $digest;
    }