/**
* Parse the given email resource
*
* @param string $file path/to/file
* @return Parser
*/
public function parseFile($file)
{
if (!file_exists($file)) {
throw new Exception("File {$file} does not exist.");
}
$this->lines = file($file);
$this->parser->setPath($file);
$bounceReason = $this->findBounceReason();
fputcsv($this->csv, array($this->findRecipient(), key($bounceReason), current($bounceReason)), $this->csvDelimiter, $this->csvEnclosure);
return $this;
}