#!/usr/local/bin/perl # Show a table of simple actions require './filter-lib.pl'; &ui_print_header(undef, $text{'index_title'}, "", undef, 0, 1); # Warn if procmail is not installed if ($config{'warn_procmail'} && !&has_command("procmail")) { print "$text{'index_warn'}
\n";
}
# Check for an override alias
$alias = &get_override_alias();
if ($alias) {
# Got one .. but does it deliver locally
$noat = $remote_user;
$noat =~ s/\@/-/g;
@values = @{$alias->{'values'}};
($tome) = grep { $_ eq "\\$remote_user" ||
$_ eq "\\$noat" } @values;
if ($tome) {
@values = grep { $_ ne $tome } @values;
$msg = 'index_aliasme';
}
else {
$msg = 'index_alias';
}
print $text{$msg},"
\n";
print "
";
}
else {
$mover .= "".
"
";
}
if ($f eq $filters[$#filters]) {
$mover .= "
";
}
else {
$mover .= "".
"
";
}
# Show the row
print &ui_checked_columns_row(
[ $cond,
$action,
@filters > 1 ? ( $mover ) : ( ) ],
\@tds, "d", $f->{'index'}
);
}
# Add a magic non-editable row for default delivery
if (!$lastalways) {
print &ui_columns_row(
[ "", $text{'index_calways'}, $text{'index_adefault'},
@filters > 1 ? ( "" ) : ( ) ],
\@tds);
}
print &ui_columns_end();
print &ui_links_row(\@links);
print &ui_form_end([ [ "delete", $text{'index_delete'} ] ]);
}
else {
# Tell the user there are none
@pmrc = &procmail::get_procmailrc();
if (@pmrc) {
print "$text{'index_none2'}\n"; } elsif (&get_global_spamassassin()) { print "$text{'index_none3'}
\n"; } else { print "$text{'index_none'}
\n"; } shift(@links); shift(@links); print &ui_links_row(\@links); } &ui_print_footer("/", $text{'index'});