#!/usr/local/bin/perl
# edit_access.cgi
# Edit an existing access rule

require './sendmail-lib.pl';
require './access-lib.pl';
&ReadParse();
$access{'access'} || &error($text{'aform_ecannot'});
$conf = &get_sendmailcf();
@accs = &list_access(&access_file($conf));

&header($text{'aform_edit'}, "");
print "<hr>\n";
&access_form($accs[$in{'num'}]);
print "<hr>\n";
&footer("list_access.cgi", $text{'access_return'},
	"", $text{'index_return'});

