function is_global() { return true; }
function to_string($_data) {
- $res = "\n";
- return $res;
+ global $philter;
+ $bogo = $philter->config['path']['bogofilter'];
+ if($_data[1]==1)
+ return ":0 fw\n"
+ . "| $bogo -u -e -p\n"
+ . ":0 e\n"
+ . "{ EXITCODE=75 HOST }\n"
+ . "\n";
+
+ if($_data[1]==2)
+ return ":0 HB:\n"
+ . "* ? $bogo\n"
+ . "/dev/null\n";
+
+ return "";
}
function to_form($_data) {