Merge branch 'pick' into master
[mmh] / test / tests / config / test-inbox
1 #!/bin/sh
2 ######################################################
3 #
4 # Test the creation of the inbox
5 #
6 ######################################################
7
8 export MMHP="$MH_TEST_DIR/profile2"
9 rm -rf "$MH_TEST_DIR/Mail2"
10 printf "Path: %s\n" "$MH_TEST_DIR/Mail2" > "$MMHP"
11
12 < /dev/null | folder > /dev/null
13 if [ ! -d "$MH_TEST_DIR/Mail2" ]; then
14         exit 1
15 fi
16
17 if [ ! -d "$MH_TEST_DIR/Mail2/inbox" ]; then
18         exit 1
19 fi
20
21 folder -create +test > /dev/null
22 rmdir "$MH_TEST_DIR/Mail2/inbox"
23
24 printf "inbox: testinbox\n" >> $MMHP
25 < /dev/null | folder > /dev/null
26 if [ ! -d "$MH_TEST_DIR/Mail2/testinbox" ]; then
27         exit 1
28 fi
29
30 if [ -d "$MH_TEST_DIR/Mail2/inbox" ]; then
31         exit 1
32 fi