barbushin/php-imap — pull request #14 by digitalunity (2013-04-02 00:26:45+00:00)
Title: Undisclosed Rec't throws errors.

When iterating through the headers and pulling all the recipients, if there are any BCC's the host and to are not set.

Therefore I have added couple of if statements to check if these are set.