@@ -532,7 +532,7 @@ discard block |
||
532 | 532 | |
533 | 533 | if ($result['rule_no'] == '0000') { |
534 | 534 | if ($debug_mode) { |
535 | - echo 'Body:' . $bmh_newline . $body . $bmh_newline; |
|
535 | + echo 'Body:'.$bmh_newline.$body.$bmh_newline; |
|
536 | 536 | echo $bmh_newline; |
537 | 537 | } |
538 | 538 | } else { |
@@ -582,14 +582,14 @@ discard block |
||
582 | 582 | /** @noinspection PhpUsageOfSilenceOperatorInspection */ |
583 | 583 | $email_arr = @\imap_rfc822_parse_adrlist($email, 'default.domain.name'); |
584 | 584 | if (isset($email_arr[0]->host) && $email_arr[0]->host != '.SYNTAX-ERROR.' && $email_arr[0]->host != 'default.domain.name') { |
585 | - $result['email'] = $email_arr[0]->mailbox . '@' . $email_arr[0]->host; |
|
585 | + $result['email'] = $email_arr[0]->mailbox.'@'.$email_arr[0]->host; |
|
586 | 586 | } |
587 | 587 | } elseif (\preg_match('/Final-Recipient: rfc822;(.*)/i', $dsn_report, $match)) { |
588 | 588 | $email = \trim($match[1], "<> \t\r\n\0\x0B"); |
589 | 589 | /** @noinspection PhpUsageOfSilenceOperatorInspection */ |
590 | 590 | $email_arr = @\imap_rfc822_parse_adrlist($email, 'default.domain.name'); |
591 | 591 | if (isset($email_arr[0]->host) && $email_arr[0]->host != '.SYNTAX-ERROR.' && $email_arr[0]->host != 'default.domain.name') { |
592 | - $result['email'] = $email_arr[0]->mailbox . '@' . $email_arr[0]->host; |
|
592 | + $result['email'] = $email_arr[0]->mailbox.'@'.$email_arr[0]->host; |
|
593 | 593 | } |
594 | 594 | } |
595 | 595 | |
@@ -1564,7 +1564,7 @@ discard block |
||
1564 | 1564 | * Delivery to the following recipients failed. |
1565 | 1565 | * [email protected] |
1566 | 1566 | */ |
1567 | - elseif (\preg_match("/Delivery to the following recipients failed.*\n.*\n.*|Message\s+delivery\s+failed" . \preg_quote($result['email'], '/') . '/i', $dsn_msg)) { |
|
1567 | + elseif (\preg_match("/Delivery to the following recipients failed.*\n.*\n.*|Message\s+delivery\s+failed".\preg_quote($result['email'], '/').'/i', $dsn_msg)) { |
|
1568 | 1568 | $result['rule_cat'] = 'other'; |
1569 | 1569 | $result['rule_no'] = '0176'; |
1570 | 1570 | } |
@@ -1613,11 +1613,11 @@ discard block |
||
1613 | 1613 | |
1614 | 1614 | if ($result['rule_no'] == '0000') { |
1615 | 1615 | if ($debug_mode) { |
1616 | - echo 'email: ' . $result['email'] . $bmh_newline; |
|
1617 | - echo 'Action: ' . $action . $bmh_newline; |
|
1618 | - echo 'Status: ' . $status_code . $bmh_newline; |
|
1619 | - echo 'Diagnostic-Code: ' . $diag_code . $bmh_newline; |
|
1620 | - echo "DSN Message:<br />\n" . $dsn_msg . $bmh_newline; |
|
1616 | + echo 'email: '.$result['email'].$bmh_newline; |
|
1617 | + echo 'Action: '.$action.$bmh_newline; |
|
1618 | + echo 'Status: '.$status_code.$bmh_newline; |
|
1619 | + echo 'Diagnostic-Code: '.$diag_code.$bmh_newline; |
|
1620 | + echo "DSN Message:<br />\n".$dsn_msg.$bmh_newline; |
|
1621 | 1621 | echo $bmh_newline; |
1622 | 1622 | } |
1623 | 1623 | } else { |