X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmhmail;h=945767a22ab2ffb306b344259b0c5d1360c0045e;hb=75e27e3157b8023906ac68ea43b47555ddf5cd51;hp=bfcfe895e087a56aff7f16074613403c8d2d54ce;hpb=5200594b19e81959d1d249e9feaad4ec0b02f5c2;p=mmh diff --git a/uip/mhmail b/uip/mhmail index bfcfe89..945767a 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