X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=maps%2Fbin%2Fmaps;h=854316bce4da4f619b2fe9c640ed07551c415c21;hb=4f37839bc9faacb57d9bce9196d916595f14b114;hp=52e234f655257bc9407064dcc4b2d7d0d28b91d4;hpb=ae9e57b169de143d2b8a7c761c3bf7394385e0d0;p=clearscm.git diff --git a/maps/bin/maps b/maps/bin/maps index 52e234f..854316b 100755 --- a/maps/bin/maps +++ b/maps/bin/maps @@ -61,7 +61,8 @@ use FindBin; use File::Temp qw (tempfile); use Net::Domain qw (hostdomain); -use lib "$FindBin::Bin/../lib", "$FindBin::Bin/../../lib"; +use lib "$FindBin::Bin/../lib"; +use lib "$FindBin::Bin/../../lib"; use MAPS; use MAPSLog; @@ -73,10 +74,6 @@ my $verbose = 0; my $execute = 1; my $userid = $ENV{USER}; -my $logpath = "$FindBin::Bin/../log"; -my $logfile = "$logpath/debug.log"; -my $forwardto = $ENV{MAPS_FORWARDTO} || 'adefaria@gmail.com'; - # For some reason I'm not parsing messages correctly but it only seems to # happen when the message is piped in from the MTA. This routine will # temporarily save the messages in a file. @@ -126,17 +123,6 @@ sub ProcessMsgs ($$$) { while (!eof *$msgfile) { my ($sender, $sender_long, $reply_to, $subject, $data) = ReadMsg (*$msgfile); - #if ($forwardto) { - # Forward a copy - #open my $mail, '|', "/usr/lib/sendmail $forwardto" - #or die "Unable to open pipe to sendmail - $!"; - - #print $mail "$data\n"; - - #close $mail - #or die "Unable to forward email to $forwardto - $!"; - #} # if - my ($onlist, $rule, $sequence, $hit_count); # Algorithm change: We now first check to see if the sender is not found @@ -226,7 +212,6 @@ GetOptions( 'verbose' => sub { set_verbose }, 'debug' => sub { set_debug }, 'execute!' => \$execute, - 'forwardto=s' => \$forwardto ) || Usage; my $msgfile;