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) { if($_data['data']=='off') return ""; $res = ":0 HB\n" . "* ? bogofilter\n" . "{\n" . " :0 c\n" . " /var/mail/spam/\n" . " :0 h\n" . " SUBJECT=| formail -xSubject:\n" . " :0 fhW\n" . " | formail -I \"X-Spam-Flag: YES\" -i \"Subject: [Xorg:SPAM]$"."SUBJECT\"\n" . ($_data["data"] == "drop" ? " :0\n /dev/null\n" : "") . "}\n" . ":0 Ec\n" . "/var/mail/nonspam/\n" . "\n"; return $res; } function to_form($_data) { $res = "
"._i18n('1_bogo')." | \n"; $res .= "\n"
. " "._i18n('1_bogo_off')." \n" . " "._i18n('1_bogo_on')." \n" . " "._i18n('1_bogo_drop')." \n" . " | \n";
$res .= "
---|