EOF
cp -p `mhpath last` "$expected"
+set +e
mhfixmsg last
+set -e
check `mhpath last` "$expected" 'keep first'
if grep "mhfixmsg: Can't convert .* to .* without iconv" "$actual.err" \
>/dev/null; then
echo skipping -textcodeset check because nmh was built without iconv
- set +e
rm -f "$expected" "$actual" "$actual.err"
else
- set +e
check "$expected" "$actual"
rm "$actual.err"
fi
+set -e
# check -nofixboundary
}
if (modify_inplace) {
+ if (status != OK) unlink (outfile);
free (outfile);
outfile = NULL;
}
free_content (mp_alt);
status = NOTOK;
}
+ } else {
+ status = NOTOK;
}
+ } else {
+ status = NOTOK;
}
}
break;
unlink (ct->c_cefile.ce_file);
free (ct->c_cefile.ce_file);
ct->c_cefile.ce_file = NULL;
+ status = NOTOK;
} else if (ct->c_encoding == CE_QUOTED &&
ct_encoding == CE_8BIT && encoding == CE_7BIT) {
if (verbosw) {
unlink (ct->c_cefile.ce_file);
free (ct->c_cefile.ce_file);
ct->c_cefile.ce_file = NULL;
+ status = NOTOK;
} else {
int enc;
if (ct_encoding == CE_BINARY)
}
free (infile);
+ } else {
+ status = NOTOK;
}
} else {
/* No modifications and didn't need the tmp outfile. */