Handle hostnames with upper-case letters
[webmin.git] / postfix / bcc.cgi
1 #!/usr/local/bin/perl
2
3 require './postfix-lib.pl';
4
5 $access{'bcc'} || &error($text{'bcc_ecannot'});
6 &ui_print_header(undef, $text{'bcc_title'}, "", "bcc");
7 &ReadParse();
8
9 # Start of BCC form
10 print &ui_form_start("save_opts_bcc.cgi");
11 print &ui_table_start($text{'bcc_title'}, "width=100%", 2);
12
13 &option_mapfield("sender_bcc_maps", 60);
14 &option_mapfield("recipient_bcc_maps", 60);
15
16 print &ui_table_end();
17 print &ui_form_end([ [ undef, $text{'opts_save'} ] ]);
18
19 # Map contents
20 print &ui_hr();
21 print &ui_tabs_start([ [ "sender", $text{'bcc_sender'} ],
22                        [ "recipient", $text{'bcc_recipient'} ] ],
23                      "mode", $in{'mode'} || 'sender', 1);
24
25 # Sender BCC maps
26 print &ui_tabs_start_tab("mode", "sender");
27 print $text{'bcc_senderdesc'},"<p>\n";
28 if (&get_current_value("sender_bcc_maps") eq "")
29 {
30     print $text{'no_map'},"<p>\n";
31 }
32 else
33 {
34     &generate_map_edit("sender_bcc_maps", $text{'map_click'}." ".
35                        &hlink($text{'help_map_format'}, "virtual"));
36 }
37 print &ui_tabs_end_tab("mode", "sender");
38
39 # Sender BCC maps
40 print &ui_tabs_start_tab("mode", "recipient");
41 print $text{'bcc_recipientdesc'},"<p>\n";
42 if (&get_current_value("recipient_bcc_maps") eq "")
43 {
44     print $text{'no_map'},"<p>\n";
45 }
46 else
47 {
48     &generate_map_edit("recipient_bcc_maps", $text{'map_click'}." ".
49                        &hlink($text{'help_map_format'}, "virtual"));
50 }
51 print &ui_tabs_end_tab("mode", "recipient");
52
53 print &ui_tabs_end(1);
54
55 &ui_print_footer("", $text{'index_return'});