#!/usr/local/bin/perl
# save_rfile.cgi
# Save an autoreply file

require './sendmail-lib.pl';
&ReadParseMime();
if (substr($in{'file'}, 0, length($access{'apath'})) ne $access{'apath'}) {
	&error(&text('rfile_efile', $in{'file'}));
	}

$in{'text'} =~ s/\r//g;
open(FILE, ">$in{'file'}");
print FILE $in{'text'};
close(FILE);
&redirect("edit_alias.cgi?num=$in{'num'}");

