#!/bin/sh
#
# No more than this NUMBER of articles from any newsgroup will be retrieved.
# You can change the number below.
#
NUMBER=5000

echo
echo "Press Ctrl-C to Exit!"
echo "If you want tin to read the active file, do this! \``basename $0` -a'"
echo "No more than \`$NUMBER' articles from any newsgroup will be retrieved."
echo "You can change the number permanently in \`/usr/bin/`basename $0`'."
echo "You can also put another number below: 200 500 2000 7000 etc."
echo -n "Press Enter to continue, or put number and press Enter: "
read ans
if [ "$ans" = "" ]; then
   N="-G $NUMBER"
else
   N="-G $ans"
fi

NN=" -n"

if [ "$1" = "-a" ]; then
  shift
  NN=""
fi

tin -radq $N$NN "$@"
