#!/usr/local/bin/perl # edit_priv.cgi # Display various privileged settings require './spam-lib.pl'; &can_use_check("priv"); &ui_print_header(undef, $text{'priv_title'}, ""); $conf = &get_config(); print "$text{'priv_desc'}

\n"; &start_form("save_priv.cgi", $text{'priv_header'}); print " $text{'priv_white'} "; &opt_field("auto_whitelist_path", $x=&find("auto_whitelist_path", $conf), 40, "~/.spamassassin/auto-whitelist"); print " \n"; print " $text{'priv_mode'} "; &opt_field("auto_whitelist_file_mode", $x=&find("auto_whitelist_file_mode", $conf), 4, "0700"); print " \n"; print " $text{'priv_dcc'} "; &opt_field("dcc_options", $x=&find("dcc_options", $conf), 10, "-R"); print " \n"; print " $text{'priv_log'} "; &opt_field("timelog_path", $x=&find("timelog_path", $conf), 40, "NULL"); print " \n"; print " $text{'priv_razor'} "; &opt_field("razor_config", $x=&find("razor_config", $conf), 40, "~/razor.conf"); print " \n"; &end_form(undef, $text{'save'}); &ui_print_footer("", $text{'index_return'});