X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/5200594b19e81959d1d249e9feaad4ec0b02f5c2..4a47d073672a5d63e2d48acb498dafb6230acb52:/uip/mhmail diff --git a/uip/mhmail b/uip/mhmail index bfcfe895..945767a2 100755 --- a/uip/mhmail +++ b/uip/mhmail @@ -272,10 +272,10 @@ Nmh-Attachment: ${arg} if "${post_or_send}" "${tmpfile}" ${postsendargs}; then exit else + status=$? + mv -f "${tmpfile}" dead.letter printf "Letter saved in dead.letter\n" - #### exec skips the trap set above. - [ "${tmpfileresent}" ] && rm -f "${tmpfileresent}" - exec mv "${tmpfile}" dead.letter + exit $status fi fi fi