X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;ds=sidebyside;f=sbr%2Ffolder_delmsgs.c;h=b145e0b8620664710eec67566f0e266defec2c93;hb=f7d9cd4bee03230dd8839581f772bdf2bdbf3c97;hp=0ecf382b9ad40eb0113005e7d505a7d77a9f1ec5;hpb=2abb9a7cfb0930e27062088734d306e7d78e4cc2;p=mmh diff --git a/sbr/folder_delmsgs.c b/sbr/folder_delmsgs.c index 0ecf382..b145e0b 100644 --- a/sbr/folder_delmsgs.c +++ b/sbr/folder_delmsgs.c @@ -6,6 +6,7 @@ ** complete copyright information. */ +#include #include #include @@ -27,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); @@ -45,13 +45,13 @@ 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--; } /* Sanity check */ if (mp->numsel != 0) - adios(NULL, "oops, mp->numsel should be 0"); + adios(EX_SOFTWARE, NULL, "oops, mp->numsel should be 0"); /* Mark that the sequence information has changed */ mp->msgflags |= SEQMOD;