| @@ 677-699 (lines=23) @@ | ||
| 674 | $email = $header->fromaddress; |
|
| 675 | } |
|
| 676 | ||
| 677 | if ($this->testMode) { |
|
| 678 | $this->output('Match: ' . $ruleNumber . ':' . $ruleCategory . '; ' . $bounceType . '; ' . $email); |
|
| 679 | } else { |
|
| 680 | // code below will use the Callback function, but return no value |
|
| 681 | $params = [ |
|
| 682 | $pos, |
|
| 683 | $bounceType, |
|
| 684 | $email, |
|
| 685 | $subject, |
|
| 686 | $header, |
|
| 687 | $remove, |
|
| 688 | $ruleNumber, |
|
| 689 | $ruleCategory, |
|
| 690 | $totalFetched, |
|
| 691 | $body, |
|
| 692 | $headerFull, |
|
| 693 | $bodyFull, |
|
| 694 | $status_code, |
|
| 695 | $action, |
|
| 696 | $diagnostic_code, |
|
| 697 | ]; |
|
| 698 | \call_user_func_array($this->actionFunction, $params); |
|
| 699 | } |
|
| 700 | } else { |
|
| 701 | // match rule, do bounce action |
|
| 702 | if ($this->testMode) { |
|
| @@ 700-728 (lines=29) @@ | ||
| 697 | ]; |
|
| 698 | \call_user_func_array($this->actionFunction, $params); |
|
| 699 | } |
|
| 700 | } else { |
|
| 701 | // match rule, do bounce action |
|
| 702 | if ($this->testMode) { |
|
| 703 | $this->output('Match: ' . $ruleNumber . ':' . $ruleCategory . '; ' . $bounceType . '; ' . $email); |
|
| 704 | ||
| 705 | return true; |
|
| 706 | } |
|
| 707 | ||
| 708 | $params = [ |
|
| 709 | $pos, |
|
| 710 | $bounceType, |
|
| 711 | $email, |
|
| 712 | $subject, |
|
| 713 | $xheader, |
|
| 714 | $remove, |
|
| 715 | $ruleNumber, |
|
| 716 | $ruleCategory, |
|
| 717 | $totalFetched, |
|
| 718 | $body, |
|
| 719 | $headerFull, |
|
| 720 | $bodyFull, |
|
| 721 | $status_code, |
|
| 722 | $action, |
|
| 723 | $diagnostic_code, |
|
| 724 | ]; |
|
| 725 | \call_user_func_array($this->actionFunction, $params); |
|
| 726 | ||
| 727 | return $result; |
|
| 728 | } |
|
| 729 | ||
| 730 | return false; |
|
| 731 | } |
|