#! /bin/sh
#
# Mutt support for muttzilla.
#


# Arguments to the script:
#   1  to
#   2  cc
#   3  bcc
#   4  subject
#   5  body file
#   6  org

MZTO=$1
MZCC=$2
MZBCC=$3
MZSUB=$4
MZBOD=$5
MZORG=$6

ARGS=""

if [ -n "$MZTO" ] ; then
    ARGS="$ARGS '$MZTO'"
fi

if [ -n "$MZCC" ] ; then
    ARGS="$ARGS -c '$MZCC'"
fi

if [ -n "$MZBCC" ] ; then
    ARGS="$ARGS -b '$MZBCC'"
fi

if [ -n "$MZSUB" ] ; then
    ARGS="$ARGS -s '$MZSUB'"
fi

if [ -n "$MZBOD" ] ; then
    ARGS="$ARGS -i '$MZBOD'"
fi

# no facility for setting "org" from the command line
