5 require './qmail-lib.pl';
7 &error_setup($text{'ffile_err'});
9 for($i=0; defined($in{"field_$i"}); $i++) {
10 next if (!$in{"field_$i"});
11 $in{"match_$i"} || &error($text{'ffile_ematch'});
12 $in{"action_$i"} || &error($text{'ffile_eaction'});
13 push(@filter, $in{"what_$i"}." ".$in{"action_$i"}." ".
14 $in{"field_$i"}." ".$in{"match_$i"}."\n");
16 push(@filter, "2 ".$in{'other'}."\n") if ($in{'other'});
18 open(FILE, ">$in{'file'}");
21 &redirect("edit_alias.cgi?name=$in{'name'}");