}
/* If removal was successful, decrement message count */
- unset_exists(mp, msgnum);
+ clear_msg_flags(mp, msgnum);
mp->nummsg--;
}
--- /dev/null
+#!/bin/sh
+######################################################
+#
+# Test refile
+#
+######################################################
+
+. "$MH_TEST_COMMON"
+
+
+runandcheck "scan +inbox" <<!
+ 1 2006-09-29 00:00 Test1 Testing message 1
+ 2 2006-09-29 00:00 Test2 Testing message 2
+ 3 2006-09-29 00:00 Test3 Testing message 3
+ 4 2006-09-29 00:00 Test4 Testing message 4
+ 5 2006-09-29 00:00 Test5 Testing message 5
+ 6 2006-09-29 00:00 Test6 Testing message 6
+ 7 2006-09-29 00:00 Test7 Testing message 7
+ 8 2006-09-29 00:00 Test8 Testing message 8
+ 9 2006-09-29 00:00 Test9 Testing message 9
+ 10 2006-09-29 00:00 Test10 Testing message 10
+!
+
+
+# refile one msg from cur folder into one other folder
+runandcheck "mark -add -zero -sequence u 10" <<!
+!
+runandcheck 'mark -list' <<!
+c:
+u: 10
+!
+runandcheck "refile 10 +fol1" <<!
+!
+runandcheck 'mark -list' <<!
+c:
+!