X7ROOT File Manager
Current Path:
/usr/libexec/webmin/spam
usr
/
libexec
/
webmin
/
spam
/
📁
..
📄
CHANGELOG
(2.12 KB)
📄
acl_security.pl
(1.69 KB)
📄
apply.cgi
(229 B)
📄
backup_config.pl
(890 B)
📄
cgi_args.pl
(189 B)
📄
config
(236 B)
📄
config-AlmaLinux-7.0-ALL
(287 B)
📄
config-CentOS-Stream-Linux-8.0-ALL
(287 B)
📄
config-Oracle-Linux-8.0-ALL
(287 B)
📄
config-Rocky-Linux-7.0-ALL
(287 B)
📄
config-debian-linux
(246 B)
📄
config-debian-linux-10.0-ALL
(294 B)
📄
config-freebsd
(288 B)
📄
config-pardus-linux
(224 B)
📄
config-redhat-linux-24.0-ALL
(287 B)
📄
config-syno-linux
(277 B)
📄
config.info
(1.43 KB)
📄
config.info.ca
(1.66 KB)
📄
config.info.cs
(1.41 KB)
📄
config.info.de
(1.67 KB)
📄
config.info.el
(967 B)
📄
config.info.es
(450 B)
📄
config.info.fr
(482 B)
📄
config.info.hu
(0 B)
📄
config.info.nl
(1.45 KB)
📄
config.info.no
(1.41 KB)
📄
defaultacl
(71 B)
📄
delete_awl.cgi
(1.17 KB)
📄
deleteall_awl.cgi
(806 B)
📄
deleteone_awl.cgi
(560 B)
📄
edit_amavisd.cgi
(4.85 KB)
📄
edit_awl.cgi
(3.54 KB)
📄
edit_db.cgi
(3.17 KB)
📄
edit_header.cgi
(4.21 KB)
📄
edit_manual.cgi
(1.06 KB)
📄
edit_priv.cgi
(1.2 KB)
📄
edit_procmail.cgi
(1.87 KB)
📄
edit_report.cgi
(4.3 KB)
📄
edit_score.cgi
(3.18 KB)
📄
edit_setup.cgi
(1.57 KB)
📄
edit_simple.cgi
(1.5 KB)
📄
edit_user.cgi
(2.76 KB)
📄
edit_white.cgi
(4.38 KB)
📁
images
📄
index.cgi
(5.18 KB)
📄
install_check.pl
(423 B)
📁
lang
📄
langs
(718 B)
📄
locales
(69 B)
📄
log_parser.pl
(329 B)
📄
module.info
(197 B)
📄
module.info.af
(0 B)
📄
module.info.af.auto
(151 B)
📄
module.info.ar
(0 B)
📄
module.info.ar.auto
(219 B)
📄
module.info.be
(0 B)
📄
module.info.be.auto
(231 B)
📄
module.info.bg
(0 B)
📄
module.info.bg.auto
(226 B)
📄
module.info.ca
(114 B)
📄
module.info.ca.auto
(21 B)
📄
module.info.cs
(36 B)
📄
module.info.cs.auto
(128 B)
📄
module.info.da
(0 B)
📄
module.info.da.auto
(154 B)
📄
module.info.de
(141 B)
📄
module.info.de.auto
(21 B)
📄
module.info.el
(0 B)
📄
module.info.el.auto
(266 B)
📄
module.info.es
(40 B)
📄
module.info.es.auto
(129 B)
📄
module.info.eu
(0 B)
📄
module.info.eu.auto
(164 B)
📄
module.info.fa
(0 B)
📄
module.info.fa.auto
(216 B)
📄
module.info.fi
(0 B)
📄
module.info.fi.auto
(156 B)
📄
module.info.fr
(40 B)
📄
module.info.fr.auto
(122 B)
📄
module.info.he
(0 B)
📄
module.info.he.auto
(191 B)
📄
module.info.hr
(0 B)
📄
module.info.hr.auto
(163 B)
📄
module.info.hu
(41 B)
📄
module.info.hu.auto
(129 B)
📄
module.info.it
(0 B)
📄
module.info.it.auto
(149 B)
📄
module.info.ja
(0 B)
📄
module.info.ja.auto
(220 B)
📄
module.info.ko
(0 B)
📄
module.info.ko.auto
(185 B)
📄
module.info.lt
(0 B)
📄
module.info.lt.auto
(190 B)
📄
module.info.lv
(0 B)
📄
module.info.lv.auto
(162 B)
📄
module.info.ms
(138 B)
📄
module.info.ms.auto
(21 B)
📄
module.info.mt
(0 B)
📄
module.info.mt.auto
(154 B)
📄
module.info.nl
(34 B)
📄
module.info.nl.auto
(121 B)
📄
module.info.no
(35 B)
📄
module.info.no.auto
(120 B)
📄
module.info.pl
(0 B)
📄
module.info.pl.auto
(172 B)
📄
module.info.pt
(0 B)
📄
module.info.pt.auto
(158 B)
📄
module.info.pt_BR
(0 B)
📄
module.info.pt_BR.auto
(167 B)
📄
module.info.ro
(0 B)
📄
module.info.ro.auto
(162 B)
📄
module.info.ru
(0 B)
📄
module.info.ru.auto
(235 B)
📄
module.info.sk
(0 B)
📄
module.info.sk.auto
(170 B)
📄
module.info.sl
(0 B)
📄
module.info.sl.auto
(161 B)
📄
module.info.sv
(0 B)
📄
module.info.sv.auto
(170 B)
📄
module.info.th
(0 B)
📄
module.info.th.auto
(271 B)
📄
module.info.tr
(0 B)
📄
module.info.tr.auto
(177 B)
📄
module.info.uk
(0 B)
📄
module.info.uk.auto
(253 B)
📄
module.info.ur
(0 B)
📄
module.info.ur.auto
(244 B)
📄
module.info.vi
(0 B)
📄
module.info.vi.auto
(185 B)
📄
module.info.zh
(0 B)
📄
module.info.zh.auto
(142 B)
📄
module.info.zh_TW
(0 B)
📄
module.info.zh_TW.auto
(151 B)
📄
save_amavisd.cgi
(2.54 KB)
📄
save_db.cgi
(1.87 KB)
📄
save_header.cgi
(2.99 KB)
📄
save_manual.cgi
(727 B)
📄
save_priv.cgi
(879 B)
📄
save_procmail.cgi
(1.75 KB)
📄
save_report.cgi
(2.14 KB)
📄
save_score.cgi
(2.05 KB)
📄
save_simple.cgi
(2.75 KB)
📄
save_user.cgi
(1.64 KB)
📄
save_white.cgi
(2.1 KB)
📄
setup.cgi
(2.71 KB)
📄
spam-amavis-lib.pl
(2.72 KB)
📄
spam-lib.pl
(27.95 KB)
Editing: save_simple.cgi
#!/usr/bin/perl # Update simple tests require './spam-lib.pl'; &ReadParse(); &set_config_file_in(\%in); &can_use_check("header"); $conf = &get_config(); &error_setup($text{'simple_err'}); &execute_before("simple"); # Get existing rules @simples = &get_simple_tests($conf); @headers = &find("header", $conf); @bodies = &find("body", $conf); @fulls = &find("full", $conf); @uris = &find("uri", $conf); @scores = &find("score", $conf); @describes = &find("describe", $conf); # Parse and validate inputs for($i=0; defined($name = $in{"name_$i"}); $i++) { $simple = $i < @simples ? $simples[$i] : undef; if ($simple) { # Take out the directives that would be replaced @headers = grep { $_ ne $simple->{'header_dir'} } @headers; @bodies = grep { $_ ne $simple->{'body_dir'} } @bodies; @fulls = grep { $_ ne $simple->{'full_dir'} } @fulls; @uris = grep { $_ ne $simple->{'uri_dir'} } @uris; @scores = grep { $_ ne $simple->{'score_dir'} } @scores; @describes = grep { $_ ne $simple->{'describe_dir'} } @describes; } if ($name) { $name =~ /^\S+$/ || &error(&text('header_ename', $name)); $donename{$name}++ && &error(&text('header_eclash', $name)); $header = $in{"header_$i"}; $regexp = $in{"regexp_$i"}; $regexp || &error(&text('header_eregexp2', $name)); $flags = $in{"flags_$i"}; $flags =~ /^[a-z]*$/ || &error(&text('header_eflags', $flags)); $score = $in{"score_$i"}; $score eq "" || $score =~ /^\-?\d+(\.\d+)?$/ || $score =~ /^\-?\.\d+$/ || &error(&text('score_epoints', $score)); $describe = $in{"describe_$i"}; # Update or add the actual directives if ($header eq "body") { push(@bodies, { 'name' => 'body', 'value' => "$name /$regexp/$flags" }); } elsif ($header eq "full") { push(@fulls, { 'name' => 'full', 'value' => "$name /$regexp/$flags" }); } elsif ($header eq "uri") { push(@uris, { 'name' => 'uri', 'value' => "$name /$regexp/$flags" }); } else { my $ucheader = ucfirst($header); push(@headers, { 'name' => 'header', 'value' => "$name $ucheader =~ /$regexp/$flags" }); } # Update the score and describe if ($score ne "") { push(@scores, { 'name' => 'score', 'value' => "$name $score" }); } if ($describe ne "") { push(@describes, { 'name' => 'describe', 'value' => "$name $describe" }); } } } # Save the directives &lock_spam_files(); &save_directives($conf, "header", \@headers, 0); &save_directives($conf, "body", \@bodies, 0); &save_directives($conf, "full", \@fulls, 0); &save_directives($conf, "score", \@scores, 0); &save_directives($conf, "describe", \@describes, 0); &save_directives($conf, "uri", \@uris, 0); &flush_file_lines(); &unlock_spam_files(); &execute_after("header"); &webmin_log("header"); &redirect($redirect_url);
Upload File
Create Folder