read the defaultfolder from the profile
[mmh] / test / tests / config / test-inbox
diff --git a/test/tests/config/test-inbox b/test/tests/config/test-inbox
new file mode 100644 (file)
index 0000000..997e52e
--- /dev/null
@@ -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