Add a template argument to hyrate default body

pull/211/head
Stacy Harper 3 years ago
parent 386b65fcb4
commit 20176430eb
No known key found for this signature in database
GPG Key ID: 5BAC92328B7C5D65

19
mcom

@ -110,6 +110,7 @@ defaultc=e
hdrs=
resume=
noquote=
template=
case "$0" in
*mcom*)
hdr=to
@ -137,6 +138,11 @@ case "$0" in
shift
fi
;;
-t)
shift
template="$1"
shift
;;
-send)
defaultc=justsend
shift;;
@ -214,6 +220,11 @@ case "$0" in
-send)
defaultc=justsend
shift;;
-t)
shift
template="$1"
shift
;;
-noquote)
noquote=1
shift;;
@ -403,6 +414,14 @@ fi
case "$0" in
*mbnc*) ;;
*)
if [ -n "$template" ]; then
if [ ! -r "$template" ]; then
printf "The template %s in unredeable\n" "$template" >&2
exit 1
fi
cat "$template"
fi
if [ -f "$MBLAZE/signature" ]; then
SIGNATURE="$MBLAZE/signature"
elif [ -f ~/.signature ]; then

Loading…
Cancel
Save