3 # Display users matching some criteria
5 require './mailboxes-lib.pl';
8 # Build a list of all matching users
9 foreach $uinfo (&list_mail_users()) {
10 if (&can_user(@$uinfo)) {
11 if ($in{'match'} == 0 && lc($in{'user'}) eq $uinfo->[0] ||
12 $in{'match'} == 1 && $uinfo->[0] =~ /\Q$in{'user'}\E/i) {
19 # Can go direct to user
20 &redirect("list_mail.cgi?user=$users[0]->[0]");
24 &error($text{'find_enone'});
27 # Show table of matches
28 &ui_print_header(undef, $text{'find_title'}, "");
29 print &text('find_results', $in{'user'}),"<p>\n";
30 &show_users_table(\@users);