@@ 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 | } elseif (\preg_match('/Final-Recipient: rfc822;(.*)/i', $dsn_report, $match)) { |
|
578 | $email = \trim($match[1], "<> \t\r\n\0\x0B"); |
|
579 | /** @noinspection PhpUsageOfSilenceOperatorInspection */ |
|
@@ 581-583 (lines=3) @@ | ||
578 | $email = \trim($match[1], "<> \t\r\n\0\x0B"); |
|
579 | /** @noinspection PhpUsageOfSilenceOperatorInspection */ |
|
580 | $email_arr = @\imap_rfc822_parse_adrlist($email, 'default.domain.name'); |
|
581 | if (isset($email_arr[0]->host) && $email_arr[0]->host != '.SYNTAX-ERROR.' && $email_arr[0]->host != 'default.domain.name') { |
|
582 | $result['email'] = $email_arr[0]->mailbox . '@' . $email_arr[0]->host; |
|
583 | } |
|
584 | } |
|
585 | ||
586 | if (\preg_match('/Action: (.+)/i', $dsn_report, $match)) { |