del metafile in whatnow2 only if send don't fail
[mmh] / uip / whatnow2.sh
index 00a40e1..2e3cf12 100755 (executable)
@@ -156,8 +156,9 @@ send()
        export mhfolder=`anno -list -component 'mhfolder' $mhmetafile`
        export mhmessages=`anno -list -component 'mhmessages' $mhmetafile`
        export mhannotate=`anno -list -component 'mhannotate' $mhmetafile`
+       exec send "$@" $mhdraft || exit $?
        rm -f $mhmetafile
-       exec send "$@" $mhdraft
+       exit 0
 }
 
 delete()