fix whatnow2 send
authorPhilipp Takacs <philipp@bureaucracy.de>
Sun, 14 Aug 2016 22:11:39 +0000 (00:11 +0200)
committerPhilipp Takacs <philipp@bureaucracy.de>
Sun, 14 Aug 2016 22:11:39 +0000 (00:11 +0200)
in the last commit whatnow2 send was changed
to keep the metafile. This don't work with the
``exec send''. Now the send() is renamed to
sendfunktion and the ``exec'' is removed.

uip/whatnow2.sh

index 2e3cf12..7ddebea 100755 (executable)
@@ -148,7 +148,7 @@ list()
        exec $mhshowproc -file $mhdraft
 }
 
        exec $mhshowproc -file $mhdraft
 }
 
-send()
+sendfunktion()
 {
        export mhaltmsg=`anno -list -component 'mhaltmsg' $mhmetafile`
        export mhdist=`anno -list -component 'mhdist' $mhmetafile`
 {
        export mhaltmsg=`anno -list -component 'mhaltmsg' $mhmetafile`
        export mhdist=`anno -list -component 'mhdist' $mhmetafile`
@@ -156,7 +156,7 @@ send()
        export mhfolder=`anno -list -component 'mhfolder' $mhmetafile`
        export mhmessages=`anno -list -component 'mhmessages' $mhmetafile`
        export mhannotate=`anno -list -component 'mhannotate' $mhmetafile`
        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 $?
+       send "$@" $mhdraft || exit $?
        rm -f $mhmetafile
        exit 0
 }
        rm -f $mhmetafile
        exit 0
 }
@@ -262,7 +262,7 @@ l|li|lis|list)
        list
        ;;
 s|se|sen|send)
        list
        ;;
 s|se|sen|send)
-       send "$@"
+       sendfunktion "$@"
        ;;
 del|dele|delet|delete)
        [ $# -eq 0 ] || usage 1
        ;;
 del|dele|delet|delete)
        [ $# -eq 0 ] || usage 1