X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=test%2Ftests%2Fconfig%2Ftest-inbox;fp=test%2Ftests%2Fconfig%2Ftest-inbox;h=997e52e6364744b17bcaf656e0fb0f506319690d;hp=0000000000000000000000000000000000000000;hb=fa1c9e13c8bae76993ec43f56685fa0057758579;hpb=1c4473f16f0081a480b9c1065675fdee277618f5 diff --git a/test/tests/config/test-inbox b/test/tests/config/test-inbox new file mode 100644 index 0000000..997e52e --- /dev/null +++ b/test/tests/config/test-inbox @@ -0,0 +1,32 @@ +#!/bin/sh +###################################################### +# +# Test the creation of the inbox +# +###################################################### + +export MMHP="$MH_TEST_DIR/profile2" +rm -rf "$MH_TEST_DIR/Mail2" +printf "Path: %s\n" "$MH_TEST_DIR/Mail2" > "$MMHP" + +< /dev/null | folder > /dev/null +if [ ! -d "$MH_TEST_DIR/Mail2" ]; then + exit 1 +fi + +if [ ! -d "$MH_TEST_DIR/Mail2/inbox" ]; then + exit 1 +fi + +folder -create +test > /dev/null +rmdir "$MH_TEST_DIR/Mail2/inbox" + +printf "inbox: testinbox\n" >> $MMHP +< /dev/null | folder > /dev/null +if [ ! -d "$MH_TEST_DIR/Mail2/testinbox" ]; then + exit 1 +fi + +if [ -d "$MH_TEST_DIR/Mail2/inbox" ]; then + exit 1 +fi