2 ######################################################
6 ######################################################
11 runandcheck "packf -help" <<!
12 Usage: packf [+folder] [msgs] [switches]
18 #runandcheck "packf -nonexistent" <<!
19 #packf: -nonexistent unknown
22 cd "$MH_TEST_DIR" || exit 1
24 # check with no switches
25 runandcheck "packf >msgbox" <<!
28 folder -create +inbox2 >/dev/null
29 inc +inbox2 -file msgbox >/dev/null
32 for i in `pick +inbox`; do
33 diff -u "`mhpath +inbox $i`" "`mhpath +inbox2 $i`"
36 runandcheck 'echo $i' <<!
45 runandcheck "packf +inbox >msgbox" <<!
47 inc +inbox2 -file msgbox >/dev/null
49 for i in `pick +inbox`; do
50 diff -u "`mhpath +inbox "$i"`" "`mhpath +inbox2 "$i"`"
52 runandcheck "echo $i" <<!
58 runandcheck "packf +inbox 1 2 3 >msgbox" <<!
61 inc +inbox2 -file msgbox >/dev/null
63 for i in `pick +inbox2`; do
64 diff -u "`mhpath +inbox "$i"`" "`mhpath +inbox2 "$i"`"
66 runandcheck "echo $i" <<!