add parse_options.sh
add a shell wrapper of sendmail
small fixes