mcom: detect and report mmime errors

Closes #191.
pull/193/head
Leah Neukirchen 4 years ago
parent 48c20b7efa
commit 5e6151e3bf

@ -92,6 +92,10 @@ do_mime() {
else else
mmime -r <"$draft" >"$draftmime" mmime -r <"$draft" >"$draftmime"
fi fi
if [ $? -ne 0 ]; then
printf 'mcom: fix above errors before continuing\n' 1>&2
rm -f "$draftmime"
fi
} }
MBLAZE=${MBLAZE:-$HOME/.mblaze} MBLAZE=${MBLAZE:-$HOME/.mblaze}
@ -450,7 +454,7 @@ while :; do
continue continue
fi fi
else else
if mmime -c <"$draft"; then if mmime -c <"$draft" && ! [ "$automime" = 1 ]; then
stampdate "$draft" stampdate "$draft"
if $sendmail <"$draft"; then if $sendmail <"$draft"; then
if [ "$outbox" ]; then if [ "$outbox" ]; then

Loading…
Cancel
Save