MatchPlugin($_glob); } function rtti() { return 1; } function name() { return _i18n('1_bogo'); } /* the plugin is only global */ function is_global() { return true; } function to_string($_data) { global $philter; $bogo = $philter->config['path']['bogofilter']; if($_data[1]==1) return "xfilter \"$bogo -u -e -p\"\n\n"; if($_data[1]==2) return "xfilter \"$bogo -u -e -p\"\n" . "if (/^X-Bogosity: Yes, tests=bogofilter/)\n" . " exit\n\n"; return ""; } function to_form($_data) { $res = "\n" . "\n"; $res .= "\n"; $res .= "\n" . "
"._i18n('1_bogo')."\n" . " "._i18n('1_bogo_off')."
\n" . " "._i18n('1_bogo_on')."
\n" . " "._i18n('1_bogo_drop')."
\n" . "
\n"; return $res; } } /******************************************************************************** * $Id$ * vim: set expandtab shiftwidth=4 tabstop=4 softtabstop=4 textwidth=100: ********************************************************************************/ ?>