@@ 804-826 (lines=23) @@ | ||
801 | $email = $header->fromaddress; |
|
802 | } |
|
803 | ||
804 | if ($this->testMode) { |
|
805 | $this->output('Match: ' . $ruleNumber . ':' . $ruleCategory . '; ' . $bounceType . '; ' . $email); |
|
806 | } else { |
|
807 | // code below will use the Callback function, but return no value |
|
808 | $params = array( |
|
809 | $pos, |
|
810 | $bounceType, |
|
811 | $email, |
|
812 | $subject, |
|
813 | $header, |
|
814 | $remove, |
|
815 | $ruleNumber, |
|
816 | $ruleCategory, |
|
817 | $totalFetched, |
|
818 | $body, |
|
819 | $headerFull, |
|
820 | $bodyFull, |
|
821 | $status_code, |
|
822 | $action, |
|
823 | $diagnostic_code, |
|
824 | ); |
|
825 | call_user_func_array($this->actionFunction, $params); |
|
826 | } |
|
827 | } else { |
|
828 | // match rule, do bounce action |
|
829 | if ($this->testMode) { |
|
@@ 827-854 (lines=28) @@ | ||
824 | ); |
|
825 | call_user_func_array($this->actionFunction, $params); |
|
826 | } |
|
827 | } else { |
|
828 | // match rule, do bounce action |
|
829 | if ($this->testMode) { |
|
830 | $this->output('Match: ' . $ruleNumber . ':' . $ruleCategory . '; ' . $bounceType . '; ' . $email); |
|
831 | ||
832 | return true; |
|
833 | } else { |
|
834 | $params = array( |
|
835 | $pos, |
|
836 | $bounceType, |
|
837 | $email, |
|
838 | $subject, |
|
839 | $xheader, |
|
840 | $remove, |
|
841 | $ruleNumber, |
|
842 | $ruleCategory, |
|
843 | $totalFetched, |
|
844 | $body, |
|
845 | $headerFull, |
|
846 | $bodyFull, |
|
847 | $status_code, |
|
848 | $action, |
|
849 | $diagnostic_code, |
|
850 | ); |
|
851 | ||
852 | return call_user_func_array($this->actionFunction, $params); |
|
853 | } |
|
854 | } |
|
855 | ||
856 | return false; |
|
857 | } |