/**
  * Search mails by a determinate string according to imap_search
  *
  * @param string $string The string to look for
  * @return array
  */
 public function searchMails($string)
 {
     return $this->mailer->searchMails($string);
 }
 /**
  * @expectedException SimpleMailReceiver\Exceptions\SimpleMailReceiverException
  * @expectedExceptionMessage Error in the search
  */
 public function testSearchException()
 {
     $this->mailer = new Mailserver(null, new \SimpleMailReceiver\Exceptions\ExceptionThrower());
     $this->mailer->searchMails('bad string');
 }