X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXMsg.pm;h=87129ea0ed1ce990391b2f182dbeffd6c545a93d;hb=3eb9538d135d9ff21d8ce7c0e0c6b3e6d7fb59a9;hp=5a796935a65317bd79643a1311b073fe77b1a6bc;hpb=8942c27356acc5d5f5a20134461bcf7e6bd6a044;p=spider.git diff --git a/perl/DXMsg.pm b/perl/DXMsg.pm index 5a796935..87129ea0 100644 --- a/perl/DXMsg.pm +++ b/perl/DXMsg.pm @@ -67,6 +67,13 @@ $forwardfn = "$msgdir/forward.pl"; # the forwarding table keep => '0,Keep this?,yesno', ); +sub DESTROY +{ + my $self = shift; + undef $self->{lines}; + undef $self->{gotit}; +} + # allocate a new object # called fromnode, tonode, from, to, datetime, private?, subject, nolinesper sub alloc @@ -76,7 +83,7 @@ sub alloc $self->{msgno} = shift; my $to = shift; # $to =~ s/-\d+$//o; - $self->{to} = $to; + $self->{to} = ($to eq $main::mycall) ? $main::myalias : $to; my $from = shift; $from =~ s/-\d+$//o; $self->{from} = uc $from; @@ -253,7 +260,7 @@ sub process $f[3] =~ s/^\///o; # remove the leading / $f[3] = lc $f[3]; # to lower case; dbg('msg', "incoming file $f[3]\n"); - last SWITCH if $f[3] =~ /^(perl|cmd|local|src|lib|include|sys|msg|connect)/; # prevent access to executables + $f[3] = 'packclus/' . $f[3] unless $f[3] =~ /^packclus\//o; # create any directories my @part = split /\//, $f[3];