5 require './majordomo-lib.pl';
7 %access = &get_module_acl();
8 &can_edit_list(\%access, $in{'name'}) || &error($text{'edit_ecannot'});
9 $list = &get_list($in{'name'}, &get_config());
10 &lock_file($list->{'config'});
11 $conf = &get_list_config($list->{'config'});
13 &save_opt($conf, $list->{'config'}, "digest_name");
14 &save_opt($conf, $list->{'config'}, "digest_maxdays", \&check_days);
15 &save_opt($conf, $list->{'config'}, "digest_maxlines", \&check_lines);
16 &save_opt($conf, $list->{'config'}, "digest_volume", \&check_volume);
17 &save_opt($conf, $list->{'config'}, "digest_issue", \&check_issue);
20 &unlock_file($list->{'config'});
21 &webmin_log("digest", undef, $in{'name'}, \%in);
22 &redirect("edit_list.cgi?name=$in{'name'}");
26 return $_[0] =~ /^\d+$/ ? undef : $text{'digest_edays'};
31 return $_[0] =~ /^\d+$/ ? undef : $text{'digest_elines'};
36 return $_[0] =~ /^\d+$/ ? undef : $text{'digest_evolume'};
41 return $_[0] =~ /^\d+$/ ? undef : $text{'digest_eissue'};