3 # Edit subscription options
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 $conf = &get_list_config($list->{'config'});
11 $desc = &text('edit_for', "<tt>".&html_escape($in{'name'})."</tt>");
12 &ui_print_header($desc, $text{'mesg_title'}, "");
14 print "<form action=save_mesg.cgi>\n";
15 print "<input type=hidden name=name value='$in{'name'}'>\n";
16 print "<table border width=100%>\n";
17 print "<tr $tb> <td><b>$text{'mesg_header'}</b></td> </tr>\n";
18 print "<tr $cb> <td><table>\n";
21 print &opt_input("reply_to", $text{'mesg_reply'},
22 $conf, $text{'mesg_none'}, 20);
23 print &opt_input("sender", $text{'mesg_sender'}, $conf,
24 $text{'default'}, 15);
28 print &opt_input("resend_host", $text{'mesg_host'}, $conf,
29 $text{'default'}, 15);
30 print &opt_input("subject_prefix", $text{'mesg_subject'},
31 $conf, $text{'default'}, 20);
35 print &select_input("precedence", $text{'mesg_precedence'}, $conf,
36 "first-class", $text{'mesg_first'},
37 "special-delivery", $text{'mesg_special'},
38 "list", $text{'mesg_list'},
39 "bulk", $text{'mesg_bulk'},
40 "junk", $text{'mesg_junk'});
41 print &choice_input("purge_received", $text{'mesg_purge'}, $conf,
42 "yes", $text{'yes'}, "no", $text{'no'});
46 print &opt_input("maxlength", $text{'mesg_maxlength'}, $conf,
47 $text{'default'}, 8, "bytes");
50 print "</table></td></tr></table>\n";
51 print "<input type=submit value=\"$text{'save'}\"></form>\n";
53 &ui_print_footer("edit_list.cgi?name=$in{'name'}", $text{'edit_return'});