The first ``inc'' into an empty folder would not update the unseen
authorJeffrey C Honig <jch@honig.net>
Sun, 14 Sep 2003 13:25:55 +0000 (13:25 +0000)
committerJeffrey C Honig <jch@honig.net>
Sun, 14 Sep 2003 13:25:55 +0000 (13:25 +0000)
sequence.  This is because seq_list() will return NULL if mp->nummsg
is zero.  Insure that mp->nummsg is incremented.

uip/inc.c

index ec4f520..1b49a84 100644 (file)
--- a/uip/inc.c
+++ b/uip/inc.c
@@ -844,6 +844,7 @@ go_to_it:
 
                msgnum++;
                mp->hghmsg++;
+               mp->nummsg++;
                clear_msg_flags (mp, msgnum);
                set_exists (mp, msgnum);
                set_unseen (mp, msgnum);