|
@@ 470-472 (lines=3) @@
|
| 467 |
|
// get the recipient email |
| 468 |
|
if (preg_match('/Original-Recipient: rfc822;(.*)/i', $dsn_report, $match)) { |
| 469 |
|
$email_arr = imap_rfc822_parse_adrlist($match[1], 'default.domain.name'); |
| 470 |
|
if (isset($email_arr[0]->host) && '.SYNTAX-ERROR.' !== $email_arr[0]->host |
| 471 |
|
&& 'default.domain.name' !== $email_arr[0]->host) { |
| 472 |
|
$result['email'] = $email_arr[0]->mailbox . '@' . $email_arr[0]->host; |
| 473 |
|
} |
| 474 |
|
} else { |
| 475 |
|
if (preg_match('/Final-Recipient: rfc822;(.*)/i', $dsn_report, $match)) { |
|
@@ 477-479 (lines=3) @@
|
| 474 |
|
} else { |
| 475 |
|
if (preg_match('/Final-Recipient: rfc822;(.*)/i', $dsn_report, $match)) { |
| 476 |
|
$email_arr = imap_rfc822_parse_adrlist($match[1], 'default.domain.name'); |
| 477 |
|
if (isset($email_arr[0]->host) && '.SYNTAX-ERROR.' !== $email_arr[0]->host |
| 478 |
|
&& 'default.domain.name' !== $email_arr[0]->host) { |
| 479 |
|
$result['email'] = $email_arr[0]->mailbox . '@' . $email_arr[0]->host; |
| 480 |
|
} |
| 481 |
|
} |
| 482 |
|
} |