#!/bin/rc switch($#*){ case 0 exec upas/edmail -m } switch($1){ case -F* -m* -f* -r* -p* -e* -c* exec upas/edmail -m $* case '-#'* exec upas/sendmail $* case * exec upas/sendmail $* }