#! /bin/sh echo $*>/tmp/mda.log case $1 in -f) shift 2;; -f*) shift;; esac (echo "ENVELOPE $1" cat -) > $2/mda.log