#!/usr/bin/perl use strict; my ($mailname) = @ARGV; if (!$mailname) { print "Usage: mail_del \n"; print " Destroy pop account \n"; exit(1); } $ENV{PATH} = ""; delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV'}; if (!($mailname =~ /^([a-z0-9_\+\.-]+\_[a-z0-9\.-]+)$/)) { die "Email is incorrect."; } $mailname=$1; $< = $>; $( = $); system("/bin/rm -rf '".quotemeta("/var/alternc/mail/".substr($mailname,0,1)."/".$mailname)."'"); 0;