Fix uip/whom.c for C89 compatibility
[mmh] / uip / mmh.sh
index cb27ae8..fe519c3 100755 (executable)
@@ -25,13 +25,12 @@ while [ $# -ge 1 ] ; do
                # check if mmh is set up
                # Note: The mail storage dir gets silently created if
                #       everything else is properly set up.
                # check if mmh is set up
                # Note: The mail storage dir gets silently created if
                #       everything else is properly set up.
-               # (folder will always create the folder if input is no tty!)
-               echo | folder >/dev/null 2>&1
+               folder -create >/dev/null 2>&1
                exit $?
                ;;
                exit $?
                ;;
-       -v*)
+       -V*)
                echo "mmh has no own version number, thus this instead:"
                echo "mmh has no own version number, thus this instead:"
-               folder -version
+               folder -Version
                exit 0
                ;;
        -h*|*)
                exit 0
                ;;
        -h*|*)
@@ -99,8 +98,6 @@ if [ -f "$profile" ] ; then
        ''|Y*|y*)
                cd "$mmhpath"
                ${VISUAL:-${EDITOR:-vi}} "$profile"
        ''|Y*|y*)
                cd "$mmhpath"
                ${VISUAL:-${EDITOR:-vi}} "$profile"
-               echo 3.
-               folder
                echo
                echo "Enjoy ..."
                exit 0
                echo
                echo "Enjoy ..."
                exit 0