src/Mailtrap.php
public function accessInboxFor($address)
  {
    $inbox = array();
    $addressPlusDelimiters = '<' . $address . '>';
    foreach($this->fetchedEmails as &$email)
    {
      $email->Headers = $this->getHeaders($email->id)->headers;
      if(!isset($email->Headers->bcc))
      {
        if(strpos($email->Headers->to, $addressPlusDelimiters) || strpos($email->Headers->cc, $addressPlusDelimiters))
        {
          array_push($inbox, $email);
        }
      }
      else if(strpos($email->Headers->bcc, $addressPlusDelimiters))
      {
        array_push($inbox, $email);
      }
    }
    $this->setCurrentInbox($inbox);
  }
public function accessInboxFor($address)
  {
    $inbox = array();
    $addressPlusDelimiters = '<' . $address . '>';
    foreach($this->fetchedEmails as &$email)
    {
      $email->Headers = $this->getHeaders($email->id)->headers;
      if(!isset($email->Headers->bcc))
      {
        if(strpos($email->Headers->to, $addressPlusDelimiters) || strpos($email->Headers->cc, $addressPlusDelimiters))
        {
          array_push($inbox, $email);
        }
      }
      else if(strpos($email->Headers->bcc, $addressPlusDelimiters))
      {
        array_push($inbox, $email);
      }
    }
    $this->setCurrentInbox($inbox);
  }
Access Inbox For

Filters emails to only keep those that are received by the provided address

@param string $address Recipient address' inbox