]> dxcluster.org Git - spider.git/commitdiff
fix change of address to SEC
authorminima <minima>
Fri, 11 Feb 2005 12:58:28 +0000 (12:58 +0000)
committerminima <minima>
Fri, 11 Feb 2005 12:58:28 +0000 (12:58 +0000)
perl/importwwv.pl

index 2a86e0dee74164210f3db4a538c1cde8ec2fda40..33b52f55f46a0957c433c45b0ded4ac6a5c2be1c 100755 (executable)
@@ -37,7 +37,7 @@ my $msg = Mail::Internet->new(\*STDIN) or die "Mail::Internet $!";
 my $head = $msg->head->header_hashref;
 
 if ($head) {
-       if ($head->{From}->[0] =~ /wwv/i || $head->{'From '}->[0] =~ /wwv/i) {
+       if ($head->{Subject}->[0] =~ /wwv/i) {
                process_wwv($msg);
        } elsif ($head->{From}->[0] =~ /rwc\.boulder/i || $head->{'From '}->[0] =~ /rwc\.boulder/i) {
                process_solar($msg);
@@ -62,6 +62,7 @@ sub process_wwv
                }
                if ($state) {
                        my $l = $_;
+                       next if /\bSec\b/i;
                        $l =~ s/\s*\.?\r?\n$//;
                        push @out, $l;
                }
@@ -87,6 +88,7 @@ sub process_solar
                }
                if ($state > 1) {
                        my $l = $_;
+                       next if /\bSec\b/i;
                        $l =~ s/\r?\n$//;
                        push @out, $l;
                }