2 # Show the Fetchmail configuration for one user
4 require './fetchmail-lib.pl';
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'}, "");
14 &show_polls(\@conf, $file, $in{'user'});
16 &ui_print_footer("", $text{'index_return'});