#!/bin/sh
#
# Stupid script for running strange command lines...
# Uncomment the ones you want to play with. 
# You need a mailbox named testmail in the current directory to
# use this as is.  The t1 ... t12 files are individual messages.
#

HYPERMAIL=../src/hypermail

#if [ -d testdir ]; then
#	rm -rf testdir
#fi

#TEST1
# Test mailbox with no config file and do not overwrite existing archives
#
#$HYPERMAIL -p -m testmail -d testdir -l 'I B TeStInG List' -a ../ 
#exit 1

#TEST2
# Test mailbox with no config file and overwriting the existing archives
#
#$HYPERMAIL -x -p -m testmail -d testdir -l 'I B TeStInG List' -a ../ 
#exit 1

#TEST3
# Test configuration file with mailbox usage
#
#$HYPERMAIL -c test.rc -m testmail 
#exit 1

#TEST4
# Test messages coming in on stdin 
#
# for i in t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13
# do
#  	cat $i | $HYPERMAIL -p -i -u -l "U2 - Wire Archives" \
#     		-d "testdir" \
#      		-b "http://www.wildheart.org/archives/wire/about.html"  \
#      		-a "http://www.wildheart.org/archives/"
# 	sleep 1
#done
#exit 1

##TEST5
## Test messages coming in on stdin with configuration file used.
##
#for i in t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13
#do
#	cat $i | $HYPERMAIL -p -i -u -l "U2 - Wire Archives" \
#      		-c "test.rc" \
#      		-d "testdir" \
#      		-b "http://www.wildheart.org/archives/wire/about.html"  \
#      		-a "http://www.wildheart.org/archives/"
#	sleep 1
#done
#exit 1
#

##TEST6
## Test messages coming from mailbox with configuration file used.
## and overriding options
##
$HYPERMAIL -p -m "testmail" -x -l "U2 - Wire Archives" \
	-c "test.rc" \
	-d "testdir" \
	-b "http://www.wildheart.org/archives/wire/about.html" \
	-a "http://www.wildheart.org/archives/"
exit 1
