mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +00:00
19 lines
351 B
Perl
Executable File
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(/\n+/, $in{'bads'});
|
|
if (@bads) {
|
|
&save_control_file("badmailfrom", \@bads);
|
|
}
|
|
else {
|
|
&save_control_file("badmailfrom", undef);
|
|
}
|
|
&webmin_log("bads", undef, undef, \%in);
|
|
&redirect("");
|
|
|