add irc channel to README
[mmh] / sbr / folder_delmsgs.c
index 8e5fd0a..b145e0b 100644 (file)
@@ -28,7 +28,6 @@ folder_delmsgs(struct msgs *mp, int hook)
 
                /* unselect message */
                unset_selected(mp, msgnum);
-               mp->numsel--;
 
                snprintf(msgpath, sizeof (msgpath), "%s/%d",
                                mp->foldpath, msgnum);
@@ -46,7 +45,7 @@ folder_delmsgs(struct msgs *mp, int hook)
                }
 
                /* If removal was successful, decrement message count */
-               unset_exists(mp, msgnum);
+               clear_msg_flags(mp, msgnum);
                mp->nummsg--;
        }