/**
  * Constructs a new ezcMailMultipartReportParser.
  *
  * @param ezcMailHeadersHolder $headers
  */
 public function __construct(ezcMailHeadersHolder $headers)
 {
     parent::__construct($headers);
     $this->report = new ezcMailMultipartReport();
     $this->parts = array();
     preg_match('/\\s*report-type="?([^;"]*);?/i', $this->headers['Content-Type'], $parameters);
     if (count($parameters) > 0) {
         $this->report->reportType = trim($parameters[1], '"');
     }
 }
 /**
  * Constructs a new ezcMailMultipartDigestParser.
  *
  * @param ezcMailHeadersHolder $headers
  */
 public function __construct(ezcMailHeadersHolder $headers)
 {
     parent::__construct($headers);
     $this->part = new ezcMailMultipartDigest();
 }