#!/bin/sh -x
#
# an intermediate test of tbiff and bifftk.
# (ie. don't involve the email system, yet).
#

# make sure this directory is the source of the scripts.
PATH=.:$PATH ; export PATH

# remember what the current state is.
orig=`tbiff`

# try to make sure bifftk is running.
tbiff y

# process a message.
tbiff -relay < ./tst.mail

# try to return to the original state.
case "$orig" in 'is n') tbiff n ;; esac
