Handle hostnames with upper-case letters
[webmin.git] / fetchmail / edit_user.cgi
1 #!/usr/local/bin/perl
2 # Show the Fetchmail configuration for one user
3
4 require './fetchmail-lib.pl';
5 &ReadParse();
6 &can_edit_user($in{'user'}) || &error($text{'poll_ecannot'});
7 @uinfo = getpwnam($in{'user'});
8 @uinfo || &error($text{'poll_eusername'});
9 $file = "$uinfo[7]/.fetchmailrc";
10 @conf = &parse_config_file("$uinfo[7]/.fetchmailrc");
11 @conf = grep { $_->{'poll'} } @conf;
12 &ui_print_header(&text('user_header', "<tt>$in{'user'}</tt>"), $text{'user_title'}, "");
13
14 &show_polls(\@conf, $file, $in{'user'});
15
16 &ui_print_footer("", $text{'index_return'});
17