part = new ezcMailMultipartDigest(); } /** * Adds the part $part to the list of multipart messages. * * This method is called automatically by ezcMailMultipartParser * each time a part is parsed. * * @param ezcMailPart $part */ public function partDone( ezcMailPart $part ) { $this->part->appendPart( $part ); } /** * Returns the parts parsed for this multipart. * * @return ezcMailMultipartDigest */ public function finishMultipart() { $size = 0; foreach ( $this->part->getParts() as $part ) { $size += $part->size; } $this->part->size = $size; return $this->part; } } ?>