cfortune / PHP-Bounce-Handler

This class can be used to parse bounced message reports. It parses e-mail messages with multipart report content type formatted according to RFC 1892 and 1894 documents. If the bounce is not well formed, it also tries to extract some useful information. Exim is supported, partially. Please send bounce messages from your busted MTA, I'll extend the class to support them. It can extract the the address of the recipient that bounced as well the mail server response status code.
http://anti-spam-man.com/php_bouncehandler/
118 stars 72 forks source link

Fatal error line 595 #4

Open ssruprai opened 11 years ago

ssruprai commented 11 years ago

Using latest version 7.3

For a certain message I'm getting error:

PHP Fatal error: Cannot use string offset as an array in ... bounce_driver.class.php on line 595

line 595: $stat = $ret['code'][0];

I think I can fix it temporarily for me using if (!is_array($ret)) { return $ret; }

One thing which might be problematic could be the received 'for' address bounced emailed had. That certain Bounced email had address as

for xxxxxxx2000@aol.com17221722; Mon, 4 Nov 2013 14:00:24 -0500 (EST) Content-Transfer-Encoding: quoted-printable