summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2015-09-22 01:08:04 -0500
committerJonathan Prykop <jonathan@freeside.biz>2015-09-22 01:08:04 -0500
commit15a4e1674694b76ecc2af87de479aabe370ac03d (patch)
treecc2913659983d244e72b16e05d78a6b6e5d9a7c7 /bin
parent0c759132a02d9403f391c6a997cbe754a4dba407 (diff)
RT#37908: Convert existing email-sending code to use common interface [removals and switches to FS::Log]
Diffstat (limited to 'bin')
-rwxr-xr-xbin/agent_email30
1 files changed, 0 insertions, 30 deletions
diff --git a/bin/agent_email b/bin/agent_email
deleted file mode 100755
index 2fe47c4..0000000
--- a/bin/agent_email
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/usr/bin/perl
-
-use strict;
-use Getopt::Std;
-use FS::UID qw(adminsuidsetup);
-
-&untaint_argv; #what it sounds like (eww)
-use vars qw(%opt);
-getopts("a:", \%opt);
-
-my $user = shift or die &usage;
-adminsuidsetup $user;
-
-use FS::Cron::agent_email qw(agent_email);
-agent_email(%opt);
-
-###
-# subroutines
-###
-
-sub untaint_argv {
- foreach $_ ( $[ .. $#ARGV ) { #untaint @ARGV
- #$ARGV[$_] =~ /^([\w\-\/]*)$/ || die "Illegal arguement \"$ARGV[$_]\"";
- # Date::Parse
- $ARGV[$_] =~ /^(.*)$/ || die "Illegal arguement \"$ARGV[$_]\"";
- $ARGV[$_]=$1;
- }
-}
-
-1;