|
@@ 542-544 (lines=3) @@
|
| 539 |
|
$email = trim($match[1], "<> \t\r\n\0\x0B"); |
| 540 |
|
/** @noinspection PhpUsageOfSilenceOperatorInspection */ |
| 541 |
|
$email_arr = @imap_rfc822_parse_adrlist($email, 'default.domain.name'); |
| 542 |
|
if (isset($email_arr[0]->host) && $email_arr[0]->host != '.SYNTAX-ERROR.' && $email_arr[0]->host != 'default.domain.name') { |
| 543 |
|
$result['email'] = $email_arr[0]->mailbox . '@' . $email_arr[0]->host; |
| 544 |
|
} |
| 545 |
|
} elseif (preg_match('/Final-Recipient: rfc822;(.*)/i', $dsn_report, $match)) { |
| 546 |
|
$email = trim($match[1], "<> \t\r\n\0\x0B"); |
| 547 |
|
/** @noinspection PhpUsageOfSilenceOperatorInspection */ |
|
@@ 549-551 (lines=3) @@
|
| 546 |
|
$email = trim($match[1], "<> \t\r\n\0\x0B"); |
| 547 |
|
/** @noinspection PhpUsageOfSilenceOperatorInspection */ |
| 548 |
|
$email_arr = @imap_rfc822_parse_adrlist($email, 'default.domain.name'); |
| 549 |
|
if (isset($email_arr[0]->host) && $email_arr[0]->host != '.SYNTAX-ERROR.' && $email_arr[0]->host != 'default.domain.name') { |
| 550 |
|
$result['email'] = $email_arr[0]->mailbox . '@' . $email_arr[0]->host; |
| 551 |
|
} |
| 552 |
|
} |
| 553 |
|
|
| 554 |
|
if (preg_match('/Action: (.+)/i', $dsn_report, $match)) { |