added the 'qsl' feature to sh/dx
[spider.git] / cmd / show / dx.pl
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