foo2
EOF
-# test with no sequence
-cat > $expected <<EOF
-new: must specify sequences or set Unseen-Sequence
-EOF
-new > $actual 2>&1
-check
-
# test with no desired messages
cat > $expected <<EOF
total 0.
check
# set aseq bseq as unseen
-echo 'Unseen-Sequence: aseq bseq' >> $MH
+echo 'Unseen-Sequence: aseq bseq' >>"$MMH/profile"
new > $actual 2>&1
check
cat > $expected <<EOF
3 aseq bseq messages in foo1
- 1 09/29 Test1 Testing message 1<<This is message number 1 >>
- 3 09/29 Test3 Testing message 3<<This is message number 3 >>
- 4 09/29 Test4 Testing message 4<<This is message number 4 >>
+ 1 2006-09-29 00:00 Test1 Testing message 1
+ 3 2006-09-29 00:00 Test3 Testing message 3
+ 4 2006-09-29 00:00 Test4 Testing message 4
3 aseq bseq messages in foo2
- 1 09/29 Test1 Testing message 1<<This is message number 1 >>
- 3 09/29 Test3 Testing message 3<<This is message number 3 >>
- 4 09/29 Test4 Testing message 4<<This is message number 4 >>
+ 1 2006-09-29 00:00 Test1 Testing message 1
+ 3 2006-09-29 00:00 Test3 Testing message 3
+ 4 2006-09-29 00:00 Test4 Testing message 4
3 aseq bseq messages in inbox (*: current folder)
- 1 09/29 Test1 Testing message 1<<This is message number 1 >>
- 3 09/29 Test3 Testing message 3<<This is message number 3 >>
- 4 09/29 Test4 Testing message 4<<This is message number 4 >>
+ 1 2006-09-29 00:00 Test1 Testing message 1
+ 3 2006-09-29 00:00 Test3 Testing message 3
+ 4 2006-09-29 00:00 Test4 Testing message 4
EOF
unseen > $actual 2>&1
check
# test fnext with the current folder not in the list
-echo 'Current-Folder: foo1' > $MH_TEST_DIR/Mail/context
+echo 'Current-Folder: foo1' >"$MMH/context"
echo 'inbox 1 3-4' > $expected
fnext -folders $folders > $actual 2>&1
check
# test fprev with the current folder not in the list
-echo 'Current-Folder: foo1' > $MH_TEST_DIR/Mail/context
+echo 'Current-Folder: foo1' >"$MMH/context"
echo 'inbox 1 3-4' > $expected
fprev -folders $folders > $actual 2>&1
check
# test fnext with current folder in the middle of the list
-echo 'Current-Folder: foo2' > $MH_TEST_DIR/Mail/context
+echo 'Current-Folder: foo2' >"$MMH/context"
echo 'inbox 1 3-4' > $expected
fnext > $actual 2>&1
check
# test fprev with current folder in the middle of the list
-echo 'Current-Folder: foo2' > $MH_TEST_DIR/Mail/context
+echo 'Current-Folder: foo2' >"$MMH/context"
echo 'foo1 1 3-4' > $expected
fprev > $actual 2>&1
check
# test fprev with current folder at the beginning of the list
-echo 'Current-Folder: foo1' > $MH_TEST_DIR/Mail/context
+echo 'Current-Folder: foo1' >"$MMH/context"
echo 'inbox 1 3-4' > $expected
fprev > $actual 2>&1
check
# test fnext with current folder at the end of the list
-echo 'Current-Folder: inbox' > $MH_TEST_DIR/Mail/context
+echo 'Current-Folder: inbox' >"$MMH/context"
echo 'foo1 1 3-4' > $expected
fnext > $actual 2>&1
check
# test fnext with no current folder
-rm $MH_TEST_DIR/Mail/context
+rm "$MMH/context"
echo 'foo1 1 3-4' > $expected
fnext > $actual 2>&1
check