This fixes a bug in folder_addmsg. If the sequences file containes
the new msgnum, seq_save won't override this.
clear_msg_flags(struct msgs *mp, int msgnum)
{
assert_msg_range(mp, msgnum);
+ if (mp->msgstats[msgnum - mp->lowoff])
+ mp->msgflags |= SEQMOD;
mp->msgstats[msgnum - mp->lowoff] = 0;
}
--- /dev/null
+#!/bin/sh
+######################################################
+#
+# Test rcvstore
+#
+######################################################
+
+. "$MH_TEST_COMMON"
+
+# check -nounseen
+printf "u: %s\n" $(basename $(mhpath b)) >> $MH_TEST_DIR/Mail/inbox/.mh_sequences
+runandcheck "rcvstore -nounseen <$MH_TEST_DIR/Mail/inbox/1" <<!
+!
+runandcheck 'mark -sequence u -list' <<!
+u:
+!
+runandcheck 'diff -u "`mhpath f`" "`mhpath l`"' <<!
+!