Files
webmin/qmailadmin/save_bads.cgi
2007-04-12 20:24:50 +00:00

19 lines
351 B
Perl
Executable File

#!/usr/local/bin/perl
# save_bads.cgi
# Save the list of rejected addresses
require './qmail-lib.pl';
&ReadParseMime();
$in{'bads'} =~ s/\r//g;
@bads = split(/\s+/, $in{'bads'});
if (@bads) {
&save_control_file("badmailfrom", \@bads);
}
else {
&save_control_file("badmailfrom", undef);
}
&webmin_log("bads", undef, undef, \%in);
&redirect("");