#! /bin/sh -

if [ -z "$ZCONFIG" ] ; then
    ZCONFIG=/usr/local/etc/zmailer/zmailer.conf
fi

. $ZCONFIG

if [ "$1" = "" ]; then
	$MAILBIN/ta/reroute "-?"
	exit 0
fi

cd $POSTOFFICE/transport || exit 1

find * -name "[1-9]*" -type f -print |  \
	$MAILBIN/ta/reroute "$@"    > /dev/null
