X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Funcatchup.pl;h=fb54f7e25e64a4148ee87080e7d1b83ae0483a9c;hb=8d130b37aba97ea31c90d20eb466d0d553eb761b;hp=4f7808d728f322f957e732af3ef24d1ba39f2643;hpb=ece633d5cd8cbe2037b066987740701f8116d586;p=spider.git diff --git a/cmd/uncatchup.pl b/cmd/uncatchup.pl index 4f7808d7..fb54f7e2 100644 --- a/cmd/uncatchup.pl +++ b/cmd/uncatchup.pl @@ -28,13 +28,19 @@ foreach my $msgno (@f) { if ($msgno =~ /^al/oi) { @ref = DXMsg::get_all(); last; + } elsif (my ($f, $t) = $msgno =~ /(\d+)-(\d+)/) { + while ($f <= $t) { + $ref = DXMsg::get($f++); + push @ref, $ref if $ref; + } + } else { + $ref = DXMsg::get($msgno); + unless ($ref) { + push @out, $self->msg('m13', $msgno); + next; + } + push @ref, $ref; } - $ref = DXMsg::get($msgno); - unless ($ref) { - push @out, $self->msg('m13', $msgno); - next; - } - push @ref, $ref; } foreach $ref (@ref) {