|
@@ 567-569 (lines=3) @@
|
| 564 |
|
$email = trim($match[1], "<> \t\r\n\0\x0B"); |
| 565 |
|
/** @noinspection PhpUsageOfSilenceOperatorInspection */ |
| 566 |
|
$email_arr = @imap_rfc822_parse_adrlist($email, 'default.domain.name'); |
| 567 |
|
if (isset($email_arr[0]->host) && $email_arr[0]->host != '.SYNTAX-ERROR.' && $email_arr[0]->host != 'default.domain.name') { |
| 568 |
|
$result['email'] = $email_arr[0]->mailbox . '@' . $email_arr[0]->host; |
| 569 |
|
} |
| 570 |
|
} elseif (preg_match('/Final-Recipient: rfc822;(.*)/i', $dsn_report, $match)) { |
| 571 |
|
$email = trim($match[1], "<> \t\r\n\0\x0B"); |
| 572 |
|
/** @noinspection PhpUsageOfSilenceOperatorInspection */ |
|
@@ 574-576 (lines=3) @@
|
| 571 |
|
$email = trim($match[1], "<> \t\r\n\0\x0B"); |
| 572 |
|
/** @noinspection PhpUsageOfSilenceOperatorInspection */ |
| 573 |
|
$email_arr = @imap_rfc822_parse_adrlist($email, 'default.domain.name'); |
| 574 |
|
if (isset($email_arr[0]->host) && $email_arr[0]->host != '.SYNTAX-ERROR.' && $email_arr[0]->host != 'default.domain.name') { |
| 575 |
|
$result['email'] = $email_arr[0]->mailbox . '@' . $email_arr[0]->host; |
| 576 |
|
} |
| 577 |
|
} |
| 578 |
|
|
| 579 |
|
if (preg_match('/Action: (.+)/i', $dsn_report, $match)) { |