added the 'qsl' feature to sh/dx
authordjk <djk>
Sun, 18 Jul 1999 14:08:10 +0000 (14:08 +0000)
committerdjk <djk>
Sun, 18 Jul 1999 14:08:10 +0000 (14:08 +0000)
cmd/Commands_en.hlp
cmd/show/dx.pl

index b41d0d83e92314017eb9fc1b15f6cc15d089dee8..3acb929b6bbde214f64c1094d8f2e567b1d48fe1 100644 (file)
@@ -379,12 +379,16 @@ day <from>-<to> - <from> days <to> days ago
 info <text>     - any spots containing <text> in the info or remarks
    
 spotter <call>  - any spots spotted by <call>
+
+qsl             - this automatically looks for any qsl info on the call
+                  held in the database.
    
 e.g. 
    
    SH/DX 9m0
    SH/DX on 20m info iota
    SH/DX 9a on vhf day 30
+   SH/DX rf1p qsl
   
 === 0^SHOW/DXCC <prefix>^Interrogate the spot database by country
 This command takes the <prefix> (which can be a full or partial 
index 700138b6d27de3e55c40cf83409583fb7d2b5e83..52467faaa8fb1ca7515e27f663e7bdbe718b9f19 100644 (file)
@@ -18,6 +18,7 @@ my $pre;
 my $spotter;
 my $info;
 my $expr;
+my $qsl;
 
 while ($f = shift @list) {             # next field
        #  print "f: $f list: ", join(',', @list), "\n";
@@ -56,6 +57,10 @@ while ($f = shift @list) {           # next field
                $spotter = uc shift @list;
                next;
        }
+       if (lc $f eq 'qsl') {
+               $doqsl = 1;
+               next;
+       }
        if (!$pre) {
                $pre = uc $f;
        }
@@ -96,6 +101,12 @@ if ($spotter) {
        $expr .= "\$f4 =~ m{$spotter}o";
 }
 
+# qsl requests
+if ($doqsl) {
+       $expr .= " && " if $expr;
+       $expr .= "\$f3 =~ m{(QSL|VIA)}io";
+}
+
 #print "expr: $expr from: $from to: $to fromday: $fromday today: $today\n";
   
 # now do the search