#!/bin/sh

#################################
#Edit these items.

GN_ROOT="/home/john/usr/gnupher"
INDEX="/test/mailindex/index.inv"  #Relative to root dir
TYPE="7w"		# Can also be 7wc, 7wh 7wd, 7wcd, 7wr
#################################

if [ $# -lt 1 ]
then
	echo
	echo "Usage: wgtest search_term [searc_term...]"
	echo
	exit 0
fi

dbase=$GN_ROOT$INDEX
echo "Trying with index file:"
echo $dbase
echo 
echo "Starting waisgn"
echo

waisgn -d $dbase $GN_ROOT ".cache"  "sample.host.edu" "70" "$TYPE" "Title" "http" $1
