- export mhaltmsg=`anno -list -component 'mhaltmsg' $mhmetafile`
- export mhdist=`anno -list -component 'mhdist' $mhmetafile`
- export mhuse=`anno -list -component 'mhuse' $mhmetafile`
- export mhfolder=`anno -list -component 'mhfolder' $mhmetafile`
- export mhmessages=`anno -list -component 'mhmessages' $mhmetafile`
- export mhannotate=`anno -list -component 'mhannotate' $mhmetafile`
- send "$@" $mhdraft || exit $?
- rm -f $mhmetafile
+ export mhaltmsg=`anno -list -component 'mmh-mhaltmsg' "$mhmetafile"`
+ export mhdist=`anno -list -component 'mmh-mhdist' "$mhmetafile"`
+ export mhfolder=`anno -list -component 'mmh-mhfolder' "$mhmetafile"`
+ export mhmessages=`anno -list -component 'mmh-mhmessages' "$mhmetafile"`
+ export mhannotate=`anno -list -component 'mmh-mhannotate' "$mhmetafile"`
+ tmp=`mktemp`
+ cp "$mhdraft" "$tmp"
+ mhl -form mhl.whatnow2 "$tmp" > "$mhdraft"
+ mhle="$?"
+ if [ "$mhle" -ne 0 ]
+ then
+ mv "$tmp" "$mhdraft"
+ exit "$mhle"
+ fi
+ send "$@" "$mhdraft" || exit $?
+ rm -f "$mhmetafile"
+ rm -f "$tmp"