]> dxcluster.org Git - spider.git/commitdiff
force a default callsign that can be overridden on command line -1 is not
authorminima <minima>
Sat, 12 Feb 2005 15:49:51 +0000 (15:49 +0000)
committerminima <minima>
Sat, 12 Feb 2005 15:49:51 +0000 (15:49 +0000)
liked by some software

perl/process_ursa.pl

index 3416d976e58dff57defd92563ca7dd60580e67a8..3894ba16af82315ced1729c4ef12b710c0a76fd4 100644 (file)
@@ -32,6 +32,7 @@ my $tmp = "$root/tmp";
 
 my $msg = Mail::Internet->new(\*STDIN) or die "Mail::Internet $!";
 my $head = $msg->head->header_hashref;
+my $fromcall = shift || 'G1TLH';
 
 if ($head && $head->{From}->[0] =~ /sidc/i && $head->{Subject}->[0] =~ /Ursigram/i) {
        my $body = $msg->body;
@@ -46,7 +47,7 @@ if ($head && $head->{From}->[0] =~ /sidc/i && $head->{Subject}->[0] =~ /Ursigram
        }
        my $fn = "ursigram$date.txt.$$"; 
        open OUT, ">$tmp/$fn" or die "import $tmp/$fn $!";
-       print OUT "SB ALL\n$title\n";
+       print OUT "SB ALL < $fromcall\n$title\n";
        print OUT map {s/\r\n$/\n/; $_} @$body;
        print OUT "/ex\n";
        close OUT;